JavaScript is only of type Number, which stores floating point values.
No int.
Edit:
If you want to format the number as a string with two digits after using the decimal point:
(4).toFixed(2)
Alexandre Jasmin Oct 30 '10 at 6:12 2010-10-30 06:12
source share