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 zero
The number 47.0 is the same number as 47, so the only way to change its representation is to make it a string.