User Guide
290 CFML Language Reference
Ceiling
Returns the closest integer greater than a given number.
See also Int, Fix, and Round.
Syntax Ceiling(
number
)
number
Any real number.
Examples <!--- This example illustrates the CF function ceiling --->
<HTML>
<HEAD>
<TITLE>Ceiling Example</TITLE>
</HEAD>
<BODY BGCOLOR=silver>
<H3>Ceiling Example</H3>
<CFOUTPUT>
<P>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)#
</CFOUTPUT>
</BODY>
</HTML>