Options
All
  • Public
  • Public/Protected
  • All
Menu

Module ceil

Index

References

Functions Math

References

Renames and re-exports ceil

Math Functions

  • ceil(number: number, precision?: number): number
  • Computes number rounded up to precision. (Round up: the smallest integer greater than or equal to a given number.)

    since

    5.5.0

    example
    ceil(4.006)
    // => 5

    ceil(6.004, 2)
    // => 6.01

    ceil(6040, -2)
    // => 6100

    Parameters

    • number: number

      The number to round up.

    • precision: number = 0

      The precision to round up to.

    Returns number

    Returns the rounded up number.