Round up OR down
Round up OR down
Out of context: Reply #5
- Started
- Last post
- 7 Responses
- monNom0
you can use the Math object to go either way.
Math.floor will round down, even if it's .9
Math.ceil will round up.
rounding should go to the next integer when it hits .5