Function ceil

Calculate the smallest integer greater than or equal to each element in an array.

> ceil([1.2, 2.5, 3.7])
[2, 3, 4]
  • Parameters

    • array: number[]

      The array of numbers.

    Returns number[]

    An array with the ceiling value of each input element.