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 |
|---|---|
| number | int |
| list<number> | list<int> |
| range | list<number> |
Examples
Apply the floor function to a list of numbers.
> [1.5 2.3 -3.1] | math floor ╭───┬────╮ │ 0 │ 1 │ │ 1 │ 2 │ │ 2 │ -4 │ ╰───┴────╯
Copyright © 2019–2026 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/math_floor.html