pow

Raises a number to the power of another number and returns the result as a floating-point value. Alias for the power() function.

pow(base, exponent) → returns numeric

This function requires RustCFML.  Not supported on Lucee, Adobe ColdFusion, etc.

Argument Reference

base numeric
Required

The base number.

exponent numeric
Required

The exponent.

Examples
Sample code invoking the pow function

pow(2, 8)

Expected Result: 256

pow(9, 0.5)

Expected Result: 3

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

Fork me on GitHub