RADIANS
All functions > MATH > RADIANS
Returns the angle in radians for the given angle in degrees.
Signatures
Returns: Angle in radians
RADIANS(degrees: T) → DOUBLE sql
| Parameter | Type | Required | Description |
|---|---|---|---|
degrees | T | Yes | Angle in degrees to convert |
Notes
- Conversion formula:
radians = degrees * (π / 180) - 180 degrees = π radians
- 360 degrees = 2π radians
- Returns NULL if the input is NULL
- Opposite of DEGREES function
- Used for trigonometric functions that expect radians
Examples
FeatureQL
SELECT
f1 := RADIANS(0), -- Zero degrees
f2 := RADIANS(30), -- 30 degrees in radians
f3 := RADIANS(45), -- 45 degrees in radians
f4 := RADIANS(90), -- 90 degrees = π/2
f5 := RADIANS(180), -- 180 degrees = π
f6 := RADIANS(360) -- 360 degrees = 2π
;Result
| f1 VARCHAR | f2 VARCHAR | f3 VARCHAR | f4 VARCHAR | f5 VARCHAR | f6 VARCHAR |
|---|---|---|---|---|---|
| 0.0 | 0.5235987755982988 | 0.7853981633974483 | 1.5707963267948966 | 3.141592653589793 | 6.283185307179586 |
On this page