You are here : phpmathceil

ceil() - math

Returns the next highest integer value by rounding up value if necessary.

Parameters :
  • value - The value to round

  • Syntax

    float ceil
         ( float $value
        )


    Example

    <?phpecho ceil(4.3);    // 5echo ceil(9.999);  // 10echo ceil(-3.14);  // -3?>


    Output / Return Value


    Limitations


    Alternatives / See Also


    Reference