abs

Absolute-value function. The absolute value of a number is
the number without its sign.

abs(number) → returns numeric

Argument Reference

number numeric
Required

Examples
Sample code invoking the abs function

abs(-4.3)

Expected Result: 4.3

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

Fork me on GitHub