A number in javascript does not have trailing zeros-
if it could, where would you stop?
That is normal behavior.
You can force them to appear if you return a string-
var n= '0.0'
alert(n)>> 0
alert(n.toFixed(5))>> '0.00000'
alert(n.toPrecision(5))>>'0.0000'