Scalar function
Returns NULL when an argument is NULL.
Syntax
Scalar
Arguments
Returns
- Type: DOUBLE
- Possible values: An angle in radians from -pi through pi.
- NULL behavior: Returns NULL when an argument is NULL.
Properties
- Approximation bound: No fixed maximum error is guaranteed.
Units
- Input unit: Coordinates in the same units
- Output unit: Radians
- Use degrees(result) to convert the result to degrees.
Usage notes
- INTEGER and INT mean the same type; STRING means VARCHAR text. NULL can be used with a supported type. Cast NULL explicitly when its type would otherwise be unclear.
- Exact result: Floating-point computation can round the mathematical result.
Examples
Different quadrants
Results are in radians, rounded to six decimal places.
Last modified on October 15, 2026