It returns the following value POSITIVEINFINITY or NEGATIVEINFINITY It returns

It returns the following value positiveinfinity or

This preview shows page 169 - 172 out of 334 pages.

It returns the following value: 0 POSITIVE_INFINITY or NEGATIVE_INFINITY. It returns the following value: Infinity A number. It rounds the integer part of this number toward zero and then returns the integer. This method is unique to Siebel eScript. For more information, see “Make Sure the JavaScript Interpreter Can Run a Function” on page 59 and “NaN Numbers” on page 29 .
Image of page 169
Siebel eScript Language Reference Version 8.1, Rev. A Methods Reference Conversion Methods 170 Format ToInt32( value ) Table 96 describes the arguments for the Convert Value to Integer 32 method. Usage To avoid an error, you must first pass the value that the value argument contains to the Is NaN method or to the Convert Value to Number method. To use the Is NaN method, you include a statement that uses the following format: if (isNaN( value )) . . [ error-handling statements ]; . else ToInt32( value ); Because the Convert Value to Integer 32 method truncates rather than rounds the value it receives, it rounds numbers toward 0. For example, it rounds negative 12.88 to negative 12. It rounds 12.88 to 12. Convert Value to Unsigned Integer 16 Method The Convert Value to Unsigned Integer 16 method converts the value that the value argument contains to an integer in the range of 0 through 2 16 minus 1. The nonexponential value is 0 through 65,535. It returns a value depending on which of the following values the value argument contains: NaN. It returns the following value: +0 +0. It returns the following value: 0 POSITIVE_INFINITY. It returns the following value: Infinity Any other value. It returns the absolute value of the integer part of the number, rounded toward 0. The absolute value does not include a positive sign or a negative sign. This method is unique to Siebel eScript. For more information, see “Make Sure the JavaScript Interpreter Can Run a Function” on page 59 . Table 96. Arguments of the Convert Value to Integer 32 Method Argument Description value The value that this method converts.
Image of page 170
Methods Reference Conversion Methods Siebel eScript Language Reference Version 8.1, Rev. A 171 This method uses the same argument as the Convert Value to Integer 32 method. For more information, see Table 96 on page 170 . Format ToUint16( value ) Usage To avoid an error, you must first pass the value argument to the Is NaN method or to the Convert Value to Number method. To use the Convert Value to Number method, you can include a statement that uses the following format: var x;i x = toNumber( value ); (if x == 'NaN') . . [ error -handling statements ]; . else ToUint16( value ); Because the Convert Value to Unsigned Integer 16 method truncates rather than rounds the value it receives, it rounds numbers toward 0. For example, it rounds 12.88 to 12. Related Topics For more information, see the following topics: “NaN Numbers” on page 29 “Round Number Method” on page 195 Convert Value to Unsigned Integer 32 Method The Convert Value to Unsigned Integer 32 method converts the value that the value argument contains to an integer in the range of 0 through 2 32 minus 1. The nonexponential value is 0 through 4,294,967,296. It returns the same value as the Convert Value to Unsigned Integer 16 method. For
Image of page 171
Image of page 172

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