how does math.ceil work code example
Example 1: math.ceil
Math.ceil(.95); // 1
Math.ceil(4); // 4
Math.ceil(7.004); // 8
Math.ceil(-0.95); // -0
Math.ceil(-4); // -4
Math.ceil(-7.004); // -7
Example 2: 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.