Round up
Syntax
ceil($number)
Description
Rounds the floating point number number
to the next larger integer.
Parameters
Name | Type | Description | Mandatory | Default |
---|---|---|---|---|
number | Number | Floating point number to be rounded up | yes |
Return value
Type: Number
The next larger integer from number
.
Examples
Decimal
ceil(3.14)
Output: 4
Integer
ceil(3)
Output: 3
Whole numbers remain unchanged.