0
how can we change the precicion floating point? maximum and minimum, for what example use. please thanks!
2 Respostas
+ 3
var x = 5.55;
console.log( x.toFixed(0) ); // 6
console.log( x.toFixed(2) ); // 5.55
console.log( x.toFixed(10) ); // 5.5500000000
0
hi sam! thank you!