Bookshelf Home | Contents | Index | PDF | ![]() ![]() |
Siebel eScript Language Reference > Siebel eScript Commands > Conversion Methods > ToInt32() MethodThis function converts its parameter to an integer in the range of -231 through 231 - 1. SyntaxReturnsIf the result is NaN, +0. If the result is +0 or -0, UsageThis function converts value to an integer in the range of -231 through 231 - 1 (that is, -2,147,483,648 to 2,147,483,647). To use it without error, first pass value to isNaN() or to ToNumber(). To use isNan(), use a statement in the following form:
Because ToInt32() truncates rather than rounds the value it is given, numbers are rounded toward 0. That is, CAUTION: The ToInt32() function is unique to Siebel eScript. Before using it, confirm that the JavaScript interpreter that will run the script supports Siebel eScript functions. Avoid using this function in a script that may be used with a JavaScript interpreter that does not support it. See AlsoToInteger() Method |
![]() |
![]() ![]() |
Siebel eScript Language Reference |