Octal Numbers An octal number is a number that uses base 8 digits It includes

Octal numbers an octal number is a number that uses

This preview shows page 27 - 30 out of 334 pages.

Octal Numbers An octal number is a number that uses base 8 digits. It includes digits from the following set: 0 through 7 A zero precedes an octal number. Table 6. Example Hexadecimal Numbers and Their Decimal Equivalents Hexadecimal Number Decimal Number 0x1 1 0x01 1 0x100 256 0x1F 31 0x1f 31 0xABCD 43981 var a = 0x1b2E var a = 6958
Image of page 27
Siebel eScript Language Reference Version 8.1, Rev. A About Siebel eScript About Data Types and Numbers 28 Table 7 lists example octal numbers and their decimal equivalents. Floating Point Numbers A floating-point number is a number that includes a whole part and a fractional part. A decimal separates these parts. For example, 10.33. NOTE: Some developers refer to a floating-point number as a float. The float data type is not a floating-point number. For more information, see “Float Data Type” on page 20 . For more information, see “Preventing a Floating-Point Error” on page 51 . Floating Decimal Numbers A floating decimal number is a number that uses the same digits as a decimal integer but uses a period to indicate the fractional part. For example: 0.32, 1.44, 99.44 var a = 100.55 + .45; Scientific Numbers A scientific number is a number that uses decimal digits and exponential notation. The following items represent exponential notation: e E A scientific number is useful if you must use very large or very small numbers. Scientific notation is also known as exponential notation. Table 8 lists example scientific numbers and their decimal equivalents. Table 7. Example Octal Numbers and Their Decimal Equivalents Octal Number Decimal Number 00 0 05 5 077 63 var a = 0143 var a = 99 Table 8. Example Scientific Numbers and Their Decimal Equivalents Scientific Number Decimal Number 4.087e2 408.7 4.087E2 408.7
Image of page 28
About Siebel eScript About Functions and Methods Siebel eScript Language Reference Version 8.1, Rev. A 29 NaN Numbers NaN is a value that is an abbreviation for the following phrase: not a number NaN is not a data type. NaN does include a literal representation. To test for NaN, you must use the isNaN function. The following example illustrates this usage: var Test = "Test String"; if (isNaN(parseInt(Test))) TheApplication().RaiseErrorText("Test is Not a Number"); If the parseInt function attempts to parse Test String into an integer, then it returns NaN because Test String does not represent a number. Numeric Constants You can reference a numeric constant as a property of the Number object. A numeric constant does not include a literal representation. Table 9 describes some numeric constants. About Functions and Methods A function is an independent section of code that does the following: 1 Receives information 2 Performs some action on this information 4.087e+2 408.7 4.087E-2 0.04087 var a = 5.321e31 + 9.333e-2 var a = 53210000000000000000000000000000 + 0.09333 Table 9. Numeric Constants in Siebel eScript Numeric Constant Value Description Number.MAX_VALUE 1.7976931348623157e+308 Largest positive number.
Image of page 29
Image of page 30

You've reached the end of your free preview.

Want to read all 334 pages?

  • Summer '16
  • Oracle
  • Type system, Siebel, Siebel eScript

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors