Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > The Math Object > Math.ceil() MethodThis method returns the smallest integer that is not less than its parameter. SyntaxReturnsThe smallest integer that is not less than number; if number is an integer, number. UsageThis method returns the smallest integer that is not less than number. If the parameter is already an integer, the result is the parameter itself. It returns NaN if number cannot be converted to a number. ExampleThe following code fragment generates a random number between 0 and 100 and displays the integer range in which the number falls. Each run of this code produces a different result. var x = Math.random() * 100; See Also |
Siebel eScript Language Reference |