Function: atan2

Syntax

atan2 (<num1>,<num2>)

Type

numeric

Returns

The arctangent derived from two numeric values. The measure of the returned angle is governed by the value of the system string angle_mode and will be in the range 0 through 360 degrees or equivalent.

The values are normalized prior to evaluation. On error, zero is returned.

Parameters

Example

numeric theta = atan2(0.707,0.707)

See Also

Functions:

atan (numeric)

Identifiers:

angle_mode (string)