User Guide Cancel

Ceiling

 

Description

Determines the closest integer that is greater than a specified number.

Returns

The closest integer that is greater than a given number.

Category

Mathematical functions

Function syntax

Ceiling(number)
Ceiling(number)
Ceiling(number)

See also

Fix, FloorIntRound

Parameters

Parameter

Description

number

A real number

Example

<h3>Ceiling Example</h3>
<cfoutput>
<p>The ceiling of 3.4 is #ceiling(3.4)#</p>
<p>The ceiling of 3 is #ceiling(3)#</p>
<p>The ceiling of 3.8 is #ceiling(3.8)#</p>
<p>The ceiling of -4.2 is #ceiling(-4.2)#</p>
</cfoutput>
<h3>Ceiling Example</h3> <cfoutput> <p>The ceiling of 3.4 is #ceiling(3.4)#</p> <p>The ceiling of 3 is #ceiling(3)#</p> <p>The ceiling of 3.8 is #ceiling(3.8)#</p> <p>The ceiling of -4.2 is #ceiling(-4.2)#</p> </cfoutput>
<h3>Ceiling Example</h3> 

<cfoutput> 
<p>The ceiling of 3.4 is #ceiling(3.4)#</p> 
<p>The ceiling of 3 is #ceiling(3)#</p> 
<p>The ceiling of 3.8 is #ceiling(3.8)#</p> 
<p>The ceiling of -4.2 is #ceiling(-4.2)#</p> 
</cfoutput>

Get help faster and easier

New user?