Returns the arc tangent of an arithmetic expression expressed in degrees.
ATAND(x)
or
ATAND(x,y)
x is a single floating-point value (syntax 1) or both x and y are floating-point values (syntax 2).
ATAND(1.0) /* returns 45.0. */ ATAND(-1.0,1.0) /* returns -45.0. */ ATAND(1.0,0.0) /* returns 45.0. */ X = 3.14157; Y = 2.0; DEGREES = ATAND(X); /* 7.2343E+01 */
or
DEGREES = ATAND(X,Y) /* 5.7518E+01 */
An ATAND operation on floating-point decimal data is actually performed using the floating-point binary operation. Thus, the range of the operands and the result of the operation are limited to the ranges for floating-point binary numbers.
Description
The ATAND function returns a floating-point value that is the arc tangent of a single arithmetic expression x or an arc tangent computed from two arithmetic expressions x and y. If two arguments are supplied, they must not both be zero.
ATAND(x) returns the arctangent of x. The result is expressed in degrees and has the same data type as x such that -90 ≤ ATAND(x) ≤ 90.
ATAND(x,y) returns the angle in degrees whose tangent is x/y. The result is the common type and maximum precision of x and y such that if x/y ≥ 0, then 0 ≤ ATAND(x,y) ≤ 180, and if x/y < 0, then -180 ≤ ATAND(x,y) ≤ 0.