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)

Parameters

Parameter

Description

n

A numeric value.

See also

Example

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

Sign in to your account