Round numbers up to the nearest integer:
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.
Parameter | Description |
---|---|
number | Required. Specifies the value to round up |
Return Value: | The value rounded up to the nearest integer |
---|---|
Return Type: | Float |
PHP Version: | 4+ |