JavaScript converte string para flutuar com 2 casas decimais
var twoPlacedFloat = parseFloat(yourString).toFixed(2)
Worried Wombat
var twoPlacedFloat = parseFloat(yourString).toFixed(2)
var twoPlacedFloat = parseFloat(yourString).toFixed(2)
js> 2.3 % 1
0.2999999999999998