Javascript à 2 chiffres
var num = 2;
var roundedString = num.toFixed(2);// 2.00
Grepper
var num = 2;
var roundedString = num.toFixed(2);// 2.00
js> 2.3 % 1
0.2999999999999998