RADIANS()

All functions > MATH > RADIANS()

Converts an angle from degrees to radians.

Signatures

Degrees to radians

Returns: Angle in radians

RADIANS(degrees: T) → DOUBLE
sql
ParameterTypeRequiredDescription
degreesTYesAngle in degrees

With:

  • T : Any numeric type

Signature notes:

  • Conversion formula: radians = degrees × (π / 180)
  • Integer input is supported (e.g. RADIANS(45))
  • Returns NULL if the input is NULL
  • Inverse of DEGREES

Examples

FeatureQL
SELECT
    f1 := RADIANS(0), -- Zero degrees
    f2 := RADIANS(45), -- 45 degrees in radians
    f3 := RADIANS(90), -- 90 degrees = π/2
    f4 := RADIANS(180) -- 180 degrees = π
;
Result
f1 VARCHARf2 VARCHARf3 VARCHARf4 VARCHAR
0.00.78539816339744831.57079632679489663.141592653589793

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