object This method returns the following string object Object string This

Object this method returns the following string

This preview shows page 167 - 170 out of 334 pages.

object This method returns the following string: [object Object] string This method returns the text of the string. undefined This method returns the following string: undefined
Image of page 167
Siebel eScript Language Reference Version 8.1, Rev. A Methods Reference Conversion Methods 168 Convert Value to Bytes Method The Convert Value to Bytes method converts the value that the value argument contains to bytes and then places this value in a buffer. This method is unique to Siebel eScript. For more information, see “Make Sure the JavaScript Interpreter Can Run a Function” on page 59 . This method does not convert a Unicode value to a corresponding ASCII value. For example, it stores the Unicode string Hit as the following value: \OH\Oi\Ot This value is the following hexadecimal sequence: 00 48 00 69 00 74 Format ToBytes( value ) Table 95 describes the arguments for the Convert Value to Bytes method. Convert Value to Integer Method The Convert Value to Integer method converts the value that the value argument contains to an integer in the range of negative 2 15 through 2 15 minus 1. The equivalent nonexponential range is negative 32,768 through 32,767. 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 or NEGATIVE_INFINITY. It returns the result. 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 . This method uses the same arguments as the Convert Value to Integer 32 method. For more information, see Table 96 on page 170 . Table 95. Arguments for the Convert Value to Bytes Method Argument Description value The value that this method converts to bytes and then places in a buffer.
Image of page 168
Methods Reference Conversion Methods Siebel eScript Language Reference Version 8.1, Rev. A 169 Format ToInteger( value ) 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 Convert Value to Number method, you can include a statement that uses the following format: var x; x = toNumber( value ); (if x == 'NaN') . . [ error -handling statements ]; . else ToInteger(value); Because the Convert Value to Integer 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. Related Topics For more information, see the following topics: “NaN Numbers” on page 29 “Round Number Method” on page 195 Convert Value to Integer 32 Method The Convert Value to Integer 32 method converts the value that the value argument contains to an integer in the range of negative 2 31 through 2 31 minus 1. The equivalent nonexponential range is negative 2,147,483,648 through 2,147,483,647. It returns a value depending on which of the following values the value argument contains: NaN. It returns the following value: NaN +0 or -0.
Image of page 169
Image of page 170

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