Changing decimal number format
Changing decimal number format
ziv@kpmbro.com
Posts: 73Questions: 28Answers: 4
Hi.
right now my table showing numbers like this: 5.058299999999996
i want to show like this : 5.05
5.058299999999996 -> 5.05
how can i control the amount of numbers after the decimal point?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
This is more of a general Javascript question, so you'd probably be better asking it on StackOverflow or similar, however, the
Number.prototype.toFixed()
method can be used for what you want.Allan
Thanks