Bookshelf Home | Contents | Index | PDF | ![]() ![]() |
Siebel eScript Language Reference > Siebel eScript Commands > Conversion or Casting Methods > ToUint16() MethodThis function converts its parameter to an integer in the range of 0 through 216 -1. SyntaxReturnsIf the result is NaN, +0. If the result is +0 , UsageThis function converts value to an integer in the range of 0 to 216 - 1 (65,535). To use it without error, first pass value to isNaN() or to ToNumber(). To use toNumber(), use a statement in the following form.
Because ToUint16() truncates rather than rounds the value it is given, numbers are rounded toward 0. Therefore, CAUTION: The ToUint16() function is unique to Siebel eScript. Avoid using it in a script that may be used with a JavaScript interpreter that does not support it. See AlsoMath.round() Method |
![]() |
![]() ![]() |
Siebel eScript Language Reference |