Returns the integer less than or equal to the input. This function is equivalent to the int function.
floor(number)
→ returns numeric
Requires CF 2016+
floor(4.0)
Expected Result: 4
Requires CF 2016+
floor(4.3)
Expected Result: 4
Requires CF 2016+
floor(4.7)
Expected Result: 4
Requires CF 2016+
floor(-4.3)
Expected Result: -5
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.