how to avoid substring from removing zeros in javascript code example
Example: remove trailing zeros javascript
var n = 6.96900
var noTrailingZeroes = n.toString()
console.log(noTrailingZeroes) // -> 6.969
var n = 6.96900
var noTrailingZeroes = n.toString()
console.log(noTrailingZeroes) // -> 6.969