Function floor

Calculate the largest integer less than or equal to each element in an array.

> floor([1.2, 2.5, 3.7])
[1, 2, 3]
  • Parameters

    • array: number[]

      The array of numbers.

    Returns number[]

    An array with the floor value of each input element.