User Guide Cancel

Floor

 

Description

This function returns the largest integer less than or equal to a specified number.

Returns

Integer

Category

History

New in Adobe ColdFusion (2016 release).

Syntax

Floor(n)
Floor(n)
Floor(n)

Parameters

Parameter

Description

n

A numeric value.

See also

Example

<cfscript>
n=65.87;
writeDump(floor(n)); // produces the output 65
</cfscript>
<cfscript> n=65.87; writeDump(floor(n)); // produces the output 65 </cfscript>
<cfscript>
    n=65.87;
    writeDump(floor(n)); // produces the output 65
</cfscript>

Get help faster and easier

New user?