How can I convert a integer type to a double/float type so it shows decimal points? For instance if I want to convert a number to a money format:

5 would turn into 5.00
4.3 would turn into 4.30

Does javascript have something I can use to do this kind of conversion?