System Namespace Math Class
Returns the angle whose tangent is the specified number.
[ VB ]
Public Shared Function Atan ( _
ByVal d As Double _
) As Double
[ C# ]
public static double Atan (
double d
);
[ C++ ]
public: static double Atan (
double d
);
[ JScript ]
public static function Atan (
d : double
) : double;
- d
- A number representing a tangent.
An angle, q, measured in radians, such that -π/2 ≤ q ≤ π/2.
-or-
NaN if d equals NaN, -π/2 rounded to double precision ( -1.5707963267949 ) if d equals NegativeInfinity, or π/2 rounded to double precision ( 1.5707963267949 ) if d equals PositiveInfinity.
A positive return value represents a counterclockwise angle from the x-axis; a negative return value represents a clockwise angle.
Multiply the return value by 180/π to convert from radians to degrees.
Math Members