Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > Conversion Methods > parseFloat() MethodThis method converts an alphanumeric string to a floating-point decimal number. SyntaxReturnsA floating-point decimal number; if string cannot be converted to a number, the special value NaN is returned. UsageWhitespace 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. The first period (.) in string is treated as a decimal point and any following digits as the fractional part of the number. Reading stops at the first non-numeric character after the decimal point. The result is converted into a number. Characters including and following the first non-numeric character are ignored. Example |
Siebel eScript Language Reference |