Function ceil

  • Calculates the ceil of a number

    Parameters

    • num: number

      The number to calculate the ceil for.

    Returns number

    The smallest integer greater than or equal to the given number. *

    Example

    ceil(-4.6);                // Returns -5
    ceil(10.5); // Returns 11

Generated using TypeDoc