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
| Parameter | Type | Required | Description |
|---|---|---|---|
degrees | T | Yes | Angle 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 VARCHAR | f2 VARCHAR | f3 VARCHAR | f4 VARCHAR |
|---|---|---|---|
| 0.0 | 0.7853981633974483 | 1.5707963267948966 | 3.141592653589793 |
On this page