ceiling
Description
Determines the closest integer that is greater than a specified number.
Categories
Related
Syntax
Ceiling(number)
Attributes
| Attribute | Description | Required | Default |
|---|---|---|---|
| number | A real number |
Returns
The
closest integer that is greater than a given number.
Example
<h3>Ceiling Example</h3>
<cfoutput>
The ceiling of 3.4 is #ceiling(3.4)#</p>
The ceiling of 3 is #ceiling(3)#</p>
The ceiling of 3.8 is #ceiling(3.8)#</p>
The ceiling of -4.2 is #ceiling(-4.2)#</p>
</cfoutput>