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

c++ - Do gcc's __float128 floating point numbers take the current rounding mode into account? -

java - the value of local variable is not used -