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:

inputoutput
list<number>list<int>
numberint

Examples

Apply the floor function to a list of numbers

> [1.5 2.3 -3.1] | math floor
╭───┬────╮
 0   1 
 1   2 
 2  -4 
╰───┴────╯