Documentation/Calc Functions/FLOOR.MATH/en

Function name:
FLOOR.MATH

Category:
Mathematical

Summary:
Rounds a number to the nearest multiple of a significance value. In most cases, the number is rounded down (toward -∞). However, a mode parameter is provided and when this is set to a non-zero value, then negative numbers are rounded up (toward +∞).

Syntax:
FLOOR.MATH(Number [; Significance [; Mode]])

Returns:
Returns a real number that is the rounded value and is an integer multiple of the significance value.

Arguments:
Number is a real number, or a reference to a cell containing that number, that is the value to be rounded.

Significance is a real number, or a reference to a cell containing that number, that is the significance value to be used. If omitted, Significance defaults to 1. The sign of Significance is ignored.

Mode is a real number, or a reference to a cell containing that number, that is a Boolean mode indicator. Mode is only effective when Number is negative. If Mode is present and equal to any non-zero value (including TRUE), negative numbers are rounded up (toward +∞). If Mode is omitted, or equal to zero or FALSE, negative numbers are rounded down (toward -∞).


 * If any argument is non-numeric, then FLOOR.MATH reports a #VALUE! error.
 * If either Number or Significance is equal to 0, then FLOOR.MATH returns 0.

Details specific to FLOOR.MATH function

 * With Significance set to -1 or +1, or defaulted to 1, and Mode set or defaulted to 0 or FALSE, FLOOR.MATH provides functionality that implements the standard mathematical definition of a floor value.


 * FLOOR.MATH is similar to the FLOOR function, the difference between the two lying in the interpretation of the Significance argument. The FLOOR function requires the Significance and Number arguments to have the same sign, whereas for FLOOR.MATH the sign of the Significance argument is ignored.

Related LibreOffice functions:
CEILING

CEILING.MATH

CEILING.PRECISE

CEILING.XCL

FLOOR

FLOOR.PRECISE

FLOOR.XCL

INT

ISO.CEILING

ODF standard:
None

Equivalent Excel functions:
FLOOR.MATH