0

how can we change the precicion floating point? maximum and minimum, for what example use. please thanks!

2nd Oct 2016, 10:54 PM
Sam De Gracia
Sam De Gracia - avatar
2 Antworten
+ 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
5th Oct 2016, 6:35 PM
Sam
Sam - avatar
0
hi sam! thank you!
6th Oct 2016, 7:24 AM
Sam De Gracia
Sam De Gracia - avatar