sqrt

Calculates the square root of a number. RustCFML alias for sqr().

sqrt(number) → returns numeric

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

Argument Reference

number numeric
Required

Number whose square root to get.

Examples
Sample code invoking the sqrt function

sqrt(144)

Expected Result: 12

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

Fork me on GitHub