Last updated on
Apr 27, 2021 05:39:23 AM GMT
|
Also Applies to ColdFusion
Description
Arctangent function. The arctangent is the angle whose tangent is number.
Returns
The arctangent, in radians, of a number.
Category
Function syntax
Atn(number) |
See also
Parameters
Parameter |
Description |
---|---|
number |
Tangent of an angle |
Usage
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.
Example
<cfscript> number=0.5; writeOutput(atn(0.5)); // Returns 0.463647609001 </cfscript>
Example
<cfscript> number=0.5; writeOutput(atn(0.5)); // Returns 0.463647609001 </cfscript>
Sign in to your account