Function reference · Math
floor
Rounds a numeric expression down to the nearest integer.
Numeric inputs return the greatest integer less than or equal to the value. Symbolic inputs remain as floor(x).
Examples
These examples use Nerdamer Notation.
Round a positive decimal downward.
floor(3.7) // → 3
Round a negative decimal toward negative infinity.
floor(-2.3) // → -3
Interfaces
The same operation is available through the interfaces below.
Nerdamer Notation
Use this form inside input passed to nerdamer(...).
floor(arg1)
nerdamer.floor
Call the operation through the default nerdamer import.
nerdamer.floor(x: ExpressionInput): Expression
Parameters
| Name | Type | Description |
|---|---|---|
x | ExpressionInput | The expression to round down. |
Returns
Expression — The greatest integer less than or equal to `x`.
