Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > The Clib Object Math Methods > Clib.div() Method and Clib.ldiv() MethodThese methods perform integer division and return a quotient and remainder in a structure. SyntaxClib.div(numerator, denominator) ReturnsA structure with the elements shown in the following table, which are the result of dividing numerator by denominator. UsageBecause Siebel eScript does not distinguish between integers and long integers, the Clib.div() and Clib.ldiv() methods are identical. ExampleThe following example accepts two numbers as input from the user, divides the first by the second, and displays the result: var division = Clib.div(ToNumber(n), ToNumber(d)); When run with the values of n=9 and d=4, this example produces this result. |
Siebel eScript Language Reference |