Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > C Language Library Reference > Clib Mathematical Methods > Clib Divide MethodThe Clib Divide method performs integer division and returns a quotient and remainder. FormatClib.div(numerator, denominator) Siebel eScript does not distinguish between integers and long integers, so clib.div and clib.ldiv are identical. Table 164 describes the arguments for the Clib Divide method. Table 165 describes the structure of the return value. ExampleThe following example accepts two numbers as input from the user, divides the first number by the second number, and then displays the result: var division = Clib.div(ToNumber(n), ToNumber(d)); If run this example with the values of n=9 and d=4, then it produces the following result: |
Siebel eScript Language Reference | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |