Siebel eScript Language Reference > Quick Reference: Methods and Properties in Siebel eScript > Mathematical Methods and Properties in Siebel eScript >

Numeric Methods in Siebel eScript


Table 21 provides a list of numeric methods.

Table 21. Numeric Methods in Siebel eScript
Method
Purpose

Clib.div() Method and Clib.ldiv() Method

Performs integer division and returns an object with the quotient and remainder

Clib.frexp() Method

Breaks a real number into a mantissa and an exponent as a power of 2

Clib.modf() Method

Splits a value into integer and fractional parts

Clib.rand() Method

Returns a random real number between 0 and 1

Clib.srand() Method

Seeds the random number generator

Math.abs() Method

Returns the absolute value of an integer

Math.ceil() Method

Rounds a real number up to the next highest integer

Math.exp() Method

Computes the exponential function

Math.floor() Method

Rounds a real number down to the next lowest integer

Math.log() Method

Calculates the natural logarithm

Math.max() Method

Returns the largest of one or more values

Math.min() Method

Returns the smallest of one or more values

Math.pow() Method

Calculates x to the power of y

Math.random() Method

Returns a random real number between 0 and 1

Math.round() Method

Rounds a value up or down

Math.sqrt() Method

Calculates the square root

Siebel eScript Language Reference