Floor
Use
The Floor() function returns the next lower multiple, rounding down towards negative infinity.
The default multiple is 1, but the optional second input specifies a multiple to be rounded to. E.g. Floor(5.4, 0.25) = 5.25.
The multiple is expected to be unitless.
Units
Numbers with units will be rounded based on those units. This means that the unit a number has at the point of calculation will affect the answer.
For example, Floor(5.8ft) to mm and Floor(5.8 ft to mm) will return values that are not equal.
Examples
Floor(1.8) = 1Floor(1.8, 0.4) = 1.6Floor(1.2) = 1Floor(-1.8) = -2Floor(3.2 ft) = 3ftFloor(3.2 ft) to mm = 914.4 mmFloor(3.2 ft to mm) = 975 mmFloor(5.33 ft, 0.25) to ft = 5.25 ftFloor(5.33 ft to ft in, 0.25) = 5 ft 3.75 in
| Function |
Floor(value)
Floor(value, multiple)
|
Floor is included by default in each file as part of the Math library.
See also: