Tan

Description

Calculates the tangent of an angle.

Return value

A number; the tangent of an angle.

Category

Mathematical functions

Syntax

Tan(number)

See also

Atn, ASin, Cos, Sin, Pi

Parameters

Parameter Description
number
Angle, in radians.
To convert an angle from degrees to radians, use the PI function, and multiply the degrees by PI/180.

Example

<h3>Tan Example</h3>
<p>Returns the tangent of an angle.
<p>Tan(1): <cfoutput>#Tan(1)#</cfoutput>
<p>Tan(Pi()/4): <cfoutput>#Tan(Pi()/4)#</cfoutput>

ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting

Version 6

Comments are no longer accepted for ColdFusion MX. ColdFusion 8 is the current version.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt2104.htm