int

Calculates the closest integer that is smaller than number.

int(number) → returns numeric

Argument Reference

number numeric
Required

Examples
Sample code invoking the int function

int(1.8)

Expected Result: 1

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub