In javascript, I've noticed that toString and valueOf truncates trailing 0s after a decimal. For example:
var num = 0.00
var num2 = 0.0100
num.valueOf() or num.toString() // outputs 0
num2.valueOf() or num2.toString() // outputs 0.01
Is this normal behavior and is there someway to retain the trailing 0s?
EDIT: I changed my original question because I realized after some testing that the above is root of the problem. Thanks.