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