math floor
for math
Returns the floor of a number (largest integer less than or equal to that number).
Signature
> math floor {flags}
Input/output types:
input | output |
---|---|
list<number> | list<int> |
number | int |
Examples
Apply the floor function to a list of numbers
> [1.5 2.3 -3.1] | math floor
╭───┬────╮
│ 0 │ 1 │
│ 1 │ 2 │
│ 2 │ -4 │
╰───┴────╯