520
Sqr
Returns a positive square root.
See also Abs.
Syntax
Sqr( number )
number
Number for which you want the square root.
Usage
Number must be greater than or equal to 0.
Examples
<!--- This example shows Sqr --->
<HTML>
<HEAD>
<TITLE>
Sqr Example
</TITLE>
</HEAD>
<BODY>
<H3>Sqr Example</H3>
<P>Returns a positive square root for a number.
<P>Sqr(2): <CFOUTPUT>#Sqr(2)#</CFOUTPUT>
<P>Sqr(Abs(-144)):<CFOUTPUT>#Sqr(Abs(-144))#</CFOUTPUT>
<P>Sqr(25^2):<CFOUTPUT>#Sqr(25^2)#</CFOUTPUT>
</BODY>
</HTML>
CFML Language Reference
Need help?
Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?
Questions and answers