Home > PHP > Function > Math > ceil()

ceil()

ceil - Round fractions up

Syntax

float ceil (float $value)

Arguments

  • value - The value to round

Description

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

Version

PHP 4, 5

Return value

value 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 integer.