+ 4

How to limits units after zero?

I'm trying to improve a program with DOM, but I need to limit numbers after zero. For example if I have 77/9 = 25.66667, I only wanna 25.6. https://code.sololearn.com/We0u0OWKEs9T/?ref=app

28th Jan 2018, 9:28 PM
Vinicius Rocha Perrud
Vinicius Rocha Perrud - avatar
3 Respostas
+ 14
value.toFixed(number of digits after comma)
28th Jan 2018, 9:30 PM
\__(° = °)__/
+ 3
just to update, that's work. Thanks man
28th Jan 2018, 9:34 PM
Vinicius Rocha Perrud
Vinicius Rocha Perrud - avatar
+ 2
You can make it so the program only has a certain number of decimal points by * it by 1 and then number of decimal points ex 100
28th Jan 2018, 9:31 PM
Ole113
Ole113 - avatar