ATAN()

All functions > MATH > ATAN()

Returns the arctangent (inverse tangent) of a number, in radians.

Signatures

Arctangent

Returns: Angle in radians, in (-π/2, π/2)

ATAN(number: T) → DOUBLE
sql
ParameterTypeRequiredDescription
numberTYesAny floating-point number

With:

  • T : Floating-point type (FLOAT, DOUBLE)

Signature notes:

  • Accepts any real number
  • ATAN(0.0) = 0, ATAN(1.0) = π/4, ATAN(-1.0) = -π/4
  • As the input approaches ±∞, the result approaches ±π/2
  • Returns NULL if the input is NULL

Examples

FeatureQL
SELECT
    f1 := ATAN(0.0E0), -- atan(0) = 0
    f2 := ATAN(1.0E0), -- atan(1) = π/4
    f3 := ATAN(-1.0E0), -- atan(-1) = -π/4
    f4 := ATAN(1.732050808E0) -- atan(√3) = π/3
;
Result
f1 VARCHARf2 VARCHARf3 VARCHARf4 VARCHAR
0.00.7853981633974483-0.78539816339744831.0471975513043785

Last update at: 2026/05/26 17:22:09