Macromedia coldfusion 4.5-cfml language reference User Manual

Page of 608
540
CFML Language Reference 
Tan
Returns the tangent of a given angle. 
See also 
Atn
ASin
Cos
Sin,
 and 
Pi
.
Syntax
Tan(
number)
number
Angle in radians for which you want the tangent. If the angle is in degrees, 
multiply it by PI()/180 to convert it to radians.
Examples
<!--- This example shows Tan --->
<HTML>
<HEAD>
<TITLE>
Tan Example
</TITLE>
</HEAD>
<BODY>
<H3>Tan Example</H3>
<P>Returns the tangent of a given angle.
<P>Tan(1): <CFOUTPUT>#Tan(1)#</CFOUTPUT>
<P>Tan(Pi()/4): <CFOUTPUT>#Tan(Pi()/4)#</CFOUTPUT>
</BODY>
</HTML>