WMLScript parseInt() Function
Complete WMLScript Lang Library
The parseInt() function returns an integer defined by the string value.
The parsing ends on the first character that is not a leading "-", "+", or a decimal digit.
Syntax
n = Lang.parseInt(string) |
Part |
Description |
n |
The integer returned from the function |
string |
A string |
Example
var a = Lang.parseInt("2345");
var b = Lang.parseInt("200 m/s");
|
Result
Complete WMLScript Lang Library
|