Java Reference
In-Depth Information
Be careful not to think that this is rounding the number to the nearest integer; it simply re-
moves the part after the decimal point, as seen in this example:
parseInt("2.9",10)
<< 2
There is also a similar function called parseFloat() that converts strings into floating
point decimal numbers:
parseFloat("2.9",10)
<< 2.9
Search WWH ::




Custom Search