fix

Converts a real number to an integer.
**Tip:** If you want to fix() to outcome of a division, simply use the integer division operator (\).

fix(number) → returns numeric

Argument Reference

number numeric
Required

The number to convert

Links more information about fix

Examples
Sample code invoking the fix function

fix(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