math - Saving float as it is using Javascript -


is there anyway save float , preserving decimal place @ same time ? e.g.

1.50 saved 1.50 instead of 1.5.

i've tried solution such tofixed, returning me variable of typeof string.

i don't think that's possible, have turn string if want preserve zeros.


Comments

Popular posts from this blog

Python Kivy ListView: How to delete selected ListItemButton? -

asp.net mvc 4 - A specified Include path is not valid. The EntityType '' does not declare a navigation property with the name '' -