The FLOOR function rounds a number down to the nearest integer multiple of specified significance.
Sample Usage
FLOOR(23.25,0.1)
FLOOR(A2,1)
Syntax
FLOOR(value, [factor])
-
value- The value to round down to the nearest integer multiple offactor. -
factor- [OPTIONAL -1by default] - The number to whose multiplesvaluewill be rounded.factormay not be equal to0.
Notes
-
valuecan be positive or negative, butfactormust be positive. -
FLOORis most often used withfactorset to a 'round' number such as0.1or0.01in order to round to a particular decimal place. However,factorcan, in fact, be any number of the same sign asvalue, e.g.FLOOR(23.25,0.18)which results in23.22, which is 0.18 * 129. This can be used, for instance, to round down to a particular denomination of currency (e.g. 0.25 or 0.05 USD).
See Also
CEILING: The CEILING function rounds a number up to the nearest integer multiple of specified significance.
TRUNC: Truncates a number to a certain number of significant digits by omitting less significant digits.
ROUNDUP: Rounds a number to a certain number of decimal places, always rounding up to the next valid increment.
ROUNDDOWN: The ROUNDDOWN function rounds a number to a certain number of decimal places, always rounding down to the next valid increment.
ROUND: The ROUND function rounds a number to a certain number of decimal places according to standard rules.
MROUND: Rounds one number to the nearest integer multiple of another.
INT: Rounds a number down to the nearest integer that is less than or equal to it.