Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How does Math.ceil work

Math.ceil(x); //This equals the next whole number after x. X must be a double.

//Example use:
x = Math.ceil(x);
//Now x is equal to x rounded up.
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #How #work
ADD COMMENT
Topic
Name
4+2 =