I know that I can round a number like this
var number = 1.3; Math.round(number); and the result I'm given is 1.
But how can I round a number to the next highest whole number? So round 1.3 to 2 instead of 1?
Don't forget Math.floor(number)!
Although, I would recommend against using javascript to do arithmetic... I don't know the exact reasons (but i just asked a question =P).
Math.rounddoesn't round down, it rounds to the nearest integer.