Is there a way to add trailing zeros to a number in javascript?
For example: 47.0 instead of 47 or 0.0 instead of 0
when I return the numbers in a json, the zeros disapper.
I need them to be numbers and not strings so .toFixed(2) doesn't help.
Thanks!