/
ceiling
ceiling
Description
Returns number rounded up, away from zero, to the nearest multiple of significance.
Parameters
Return Type
Number
Example
Prints:
number a = ceiling(2.5, 1);
print("a= " + a);
number b = ceiling(-2.5, -2);
print("b= " + b);
Prints:
a= 3;
b= -4;
If number is positive and significance is negative, ceiling returns the NaN value.
See also
Peacock
, multiple selections available,
Related content
floor
More like this
Math Functions
Math Functions
Read with this
ceiling
ceiling
More like this
Function Index
Function Index
Read with this
floor
More like this
Functions (Routines)
Functions (Routines)
Read with this