CEIL(3) 1 CEIL(3)
ceil - Round fractions up
SYNOPSIS
float ceil (float $value)
DESCRIPTION
Returns the next highest integer value by rounding up $value if necessary.
PARAMETERS
o $value
- The value to round
RETURN VALUES
$value rounded up to the next highest integer. The return value of ceil(3) is still of type float as the value range of float is usually
bigger than that of integer.
EXAMPLES
Example #1
ceil(3) example
<?php
echo ceil(4.3); // 5
echo ceil(9.999); // 10
echo ceil(-3.14); // -3
?>
SEE ALSO
floor(3), round(3).
PHP Documentation Group CEIL(3)