Calculate the largest integer less than or equal to each element in an array.
> floor([1.2, 2.5, 3.7])[1, 2, 3] Copy
> floor([1.2, 2.5, 3.7])[1, 2, 3]
The array of numbers.
An array with the floor value of each input element.
Calculate the largest integer less than or equal to each element in an array.
Example