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.
<cfscript> number=0.5; writeOutput(atn(0.5)); // Returns 0.463647609001 </cfscript>
<cfscript> number=0.5; writeOutput(atn(0.5)); // Returns 0.463647609001 </cfscript>
Sign in to your account