Bookshelf Home | Contents | Index | Search | PDF | ![]() ![]() ![]() ![]() |
Siebel eScript Language Reference > Siebel eScript Commands > The Clib Object >
Clib.modf() Method
This method returns the integer part of a decimal number.
Syntax
Clib.modf(number, var intVar)
Parameter Description number The floating-point number to be split intVar A variable to hold the integer part of numberReturns
The integer part of number, stored in intVar.
Usage
This method returns the integer part of a decimal number. Its effect is identical to that of ToInteger(number).
Example
This example passes the same value to Clib.modf() and ToInteger(). As the illustration shows, the result is the same:
function eScript_Click ()
{
Clib.modf(32.154, var x);
var y = ToInteger(32.154);
TheApplication().RaiseErrorText("modf yields " + x +
".\nToInteger yields " + y + ".");
}See Also
Bookshelf Home | Contents | Index | Search | PDF | ![]() ![]() ![]() ![]() |
Siebel eScript Language Reference Published: 18 April 2003 |