#Math
6 messages · Page 1 of 1 (latest)
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
Math.round(number)
Or you can do Math.floor to round down
ceil() is to always round up
and there's parseInt to just cut off the decimals (which in effect is just floor)