ASIN()

All functions > MATH > ASIN()

Returns the arcsine (inverse sine) of a number, in radians.

Signatures

Arcsine

Returns: Angle in radians, in [-π/2, π/2]

ASIN(number: T) → DOUBLE
sql
ParameterTypeRequiredDescription
numberTYesA number in [-1, 1]

With:

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

Signature notes:

  • Input must be in [-1, 1]
  • ASIN(0.0) = 0, ASIN(1.0) = π/2, ASIN(-1.0) = -π/2
  • Returns NaN for inputs outside [-1, 1]
  • Returns NULL if the input is NULL

Examples

FeatureQL
SELECT
    f1 := ASIN(1.0E0), -- asin(1) = π/2
    f2 := ASIN(0.5E0), -- asin(0.5) = π/6
    f3 := ASIN(0.0E0), -- asin(0) = 0
    f4 := ASIN(-0.5E0) -- asin(-0.5) = -π/6
;
Result
f1 VARCHARf2 VARCHARf3 VARCHARf4 VARCHAR
1.57079632679489660.52359877559829880.0-0.5235987755982988

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