Firebird Documentation IndexFirebird 2.1 Language Ref. UpdateExternal functions (UDFs) → atan2
Firebird Home Firebird Home Prev: atanFirebird Documentation IndexUp: External functions (UDFs)Next: bin_and

atan2

Library: ib_udf

Added in: IB

Better alternative: Internal function ATAN2()

Description: Returns the angle whose sine-to-cosine ratio is given by the two arguments, and whose sine and cosine signs correspond to the signs of the arguments. This allows results across the entire circle, including the angles -π/2 and π/2.

Result type: DOUBLE PRECISION

Syntax: 

atan2 (num1, num2)

Declaration: 

DECLARE EXTERNAL FUNCTION atan2
   DOUBLE PRECISION, DOUBLE PRECISION
   RETURNS DOUBLE PRECISION BY VALUE
   ENTRY_POINT 'IB_UDF_atan2' MODULE_NAME 'ib_udf'
Prev: atanFirebird Documentation IndexUp: External functions (UDFs)Next: bin_and
Firebird Documentation IndexFirebird 2.1 Language Ref. UpdateExternal functions (UDFs) → atan2