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:
<< 2
There is also a similar function called parseFloat() that converts strings into floating
point decimal numbers:
<< 2.9
Search WWH ::

Custom Search