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), where n is a number.

See also

Example

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

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy