W3cubDocs

/Nushell

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.52.3-3.1] |math floor
╭───┬────╮
01
12
2-4
╰───┴────╯

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/math_floor.html