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
Click here to design a Stunning Flash Website for Free
Wix is a revolutionary web design tool that provides anyone with the possibility to create professional and beautiful websites for free.
With e-commerce features, search engine visibility and many more professional tools, Wix is the ultimate solution for creating a spectacular site while saving tons of money.
|