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
Post a Comment