| Contents > CFML Reference > ColdFusion Functions > Atn |
|
|
|
|
||
Arctangent function. The arctangent is the angle whose tangent is number.
The arctangent, in radians, of a number.
Atn(number)
Parameter |
Description |
|---|---|
number |
Tangent of an angle |
The range of the result is -p/2 to p/2 radians. To convert degrees to radians, multiply degrees by p/180. To convert radians to degrees, multiply radians by 180/p.
<h3>Atn Example</h3>
<!--- output its Atn value --->
<cfif IsDefined("FORM.AtnNum")>
<cfif IsNumeric(FORM.AtnNum)>
Atn(<cfoutput>#FORM.AtnNum#</cfoutput>) =
<cfoutput>#Atn(FORM.AtnNum)# radians =
#Evaluate(Atn(FORM.AtnNum * 180/PI())#
Degrees</cfoutput>
<cfelse>
<!--- if it is empty, output an error message --->
<h4>Enter a number</h4>
</cfif>
</cfif>
<form action = "atn.cfm">
<p>Enter a number to get its arctangent in Radians and Degrees
<br><input type = "Text" name = "atnNum" size = "25">
<p><input type = "Submit" name = ""> <input type = "RESET">
</form>
|
|
||
| Contents > CFML Reference > ColdFusion Functions > Atn |
|
|
ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 6.1
Comments are no longer accepted for ColdFusion MX 6.1. 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.1/htmldocs/functa22.htm