Related Topics For more information see Get Minimum Method on page 191 Get

• Test Prep
• 334

This preview shows page 191 - 195 out of 334 pages.

Related Topics For more information, see “Get Minimum Method” on page 191 . Get Minimum Method The Get Minimum method returns the smaller of the values that the x argument and the y argument contain. If it cannot convert the value that the number argument contains to a number, then it returns the following value: NaN Table 110. Arguments for the Get Maximum Method Argument Description x A numeric literal or numeric variable. y A numeric literal or numeric variable.
Siebel eScript Language Reference Version 8.1, Rev. A Methods Reference Mathematical Methods 192 This method uses the same argument as the Math Maximum method. For more information, see Table 110 on page 191 . Format Math.min( x, y ) Get Quotient Method The Get Quotient method returns the quotient after a division operation that the Clib Divide method performs. You use this method in conjunction with the Clib Divide method. Format intVar .quot Table 111 describes the arguments for the Get Quotient method. Example For an example, see “Clib Divide Method” on page 269 . Get Random Number Method The Get Random Number method creates and then returns a pseudo-random number between 0 and 1. It uses no arguments. Where possible, you must use the Get Random Number method instead of the Clib Create Random Number method. You use the Clib Create Random Number method only if you must use the Clib Initialize Random Number Generator method to create an initial value for the random number generator. For more information, see the following topics: “Clib Create Random Number Method” on page 268 “Clib Initialize Random Number Generator Method” on page 273 Format Math.random() Table 111. Arguments for the Get Quotient Method Argument Description intVar Any variable that contains an integer.
Methods Reference Mathematical Methods Siebel eScript Language Reference Version 8.1, Rev. A 193 Example The following example creates a random string of characters in a range. The Get Random Number method sets the range between lowercase letter a through lowercase letter z: function Test_Click () { var str1 = ""; var letter; var randomvalue; var upper = "z"; var lower = "a"; upper = upper.charCodeAt(0); lower = lower.charCodeAt(0); for (var x = 1; x < 26; x++) { randomvalue = Math.round(((upper - (lower + 1)) * Math.random()) + lower); letter = String.fromCharCode(randomvalue); str1 = str1 + letter; } TheApplication().RaiseErrorText(str1); } Get Remainder Method The Get Remainder method returns the remainder after a division operation that the Clib Divide method performs. You use this method in conjunction with the Clib Divide method. Format intVar .rem Table 112 describes the arguments for the Get Remainder method. Example For an example, see “Clib Divide Method” on page 269 . Table 112. Arguments for the Get Remainder Method Argument Description intVar Any variable that contains an integer.
Siebel eScript Language Reference Version 8.1, Rev. A Methods Reference Mathematical Methods 194 Get Sine Method The Get Sine method returns the sine of an angle, expressed in radians. It returns the sine of the value that the number argument contains. The return value is between negative 1 and 1. If this

#### 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

• 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.

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

• 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.

Dana University of Pennsylvania ‘17, Course Hero Intern

• 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.

Jill Tulane University ‘16, Course Hero Intern