Search Results

  1. Return Values ¶ num rounded up to the next highest integer. The return value of ceil () is still of type float as the value range of float is usually bigger than that of int.

    • POW

      Return Values ¶ num raised to the power of exponent. If both...

    • ABS

      Absolute value Return Values ¶ The absolute value of num. If...

    • Intdiv

      Return Values ¶ The integer quotient of the division of num1...

    • Log

      Natural logarithm If the optional base parameter is...

    • Fmod

      Given these simplistic input values: fmod_positive_only(-5,...

    • Sin

      Sine sin () returns the sine of the num parameter. The num...

    • Decbin

      See Also ¶ bindec () - Binary to decimal decoct () - Decimal...

    • Octdec

      Octal to decimal Returns the decimal equivalent of the octal...

  2. Definition and Usage The ceil () function rounds a number UP to the nearest integer, if necessary. Tip: To round a number DOWN to the nearest integer, look at the floor () function. Tip: To round a floating-point number, look at the round () function.

  3. Jun 22, 2023 · PHP provides us with a built-in function ceil () to perform such operation. The ceil () function is a built-in function in PHP and is used to round a number to the nearest greater integer.

  4. The ceil() function is a built-in mathematical function in PHP that rounds any float number up to the next highest integer. This function always returns a float number, as the range of float is larger than that of integer.

  5. May 26, 2023 · The ceil() function returns the next highest integer value of the fractional argument.

  6. Aug 19, 2022 · Description The ceil () function is used to get the next highest integer value by rounding up. Version (PHP 4 and above) Syntax ceil (num_value) Parameter

  7. People also ask

  8. ceil Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8 Round fractions up