0

when converting javascript floating point numbers to string format insignificant trailing decimal zeros are lost.

for an example

var num = 20.0;
altert(num);

will give output as 20

how can i stop removing insignificant decimal trailing zeros when formatted as string

1 Answer 1

0

Answer that was already given

Please take above reference

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.