Ceiling() - get the closest integer that is greater than a specified number
Ceiling.cfm
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Ceiling function example: how to get the closest integer that is greater than a specified number</title>
</head>
<body>
<h2 style="color:hotpink">Ceiling Function Example</h2>
<table style="color:LightGreen; background:Green;" border="1" bordercolor="DarkGreen">
<tr>
<td style="font-weight:bold">Ceilig</td>
<td style="font-weight:bold">Output</td>
</tr>
<tr>
<td>#Ceiling(5.4)#</td>
<td><cfoutput>#Ceiling(5.4)#</cfoutput></td>
</tr>
<tr>
<td>#Ceiling(6.6)#</td>
<td><cfoutput>#Ceiling(6.6)#</cfoutput></td>
</tr>
<tr>
<td>#Ceiling(5.0)#</td>
<td><cfoutput>#Ceiling(5.0)#</cfoutput></td>
</tr>
<tr>
<td>#Ceiling(-5.3)#</td>
<td><cfoutput>#Ceiling(-5.3)#</cfoutput></td>
</tr>
<tr>
<td>#Ceiling(2.9)#</td>
<td><cfoutput>#Ceiling(2.9)#</cfoutput></td>
</tr>
</table>
</body>
</html>