Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > Conversion Methods > parseInt() MethodThis method converts an alphanumeric string to an integer number. Syntax
ReturnsAn integer number; if string cannot be converted to a number, the special value NaN is returned. If radix is not provided or is zero, then radix is assumed to be 10, with the following exceptions:
UsageWhite-space characters at the beginning of the string are ignored. The first nonwhite-space character must be either a digit or a minus sign (-). Numeric characters in string are read. Reading stops at the first non-numeric character. The result is converted into an integer number. Characters including and following the first non-numeric character are ignored. CAUTION: When the passed string contains a leading zero, such as in "05," the number is interpreted as on octal, as it is in other eScript contexts. Parameters that are interpreted as invalid octals, such as "08" and "09," will generate a return value of zero. Example |
Siebel eScript Language Reference |