Skip to main content

DEGREES

Converts a specified angle from radians to degrees.

See also:
[SELECT]


Syntax

SELECT DEGREES(angle_in_radians) FROM <multipartIdentifier>;

Arguments

angle_in_radians
A numeric expression representing an angle in radians.

Return Value(s)

Returns the equivalent of the angle in degrees.


Examples

Convert π radians to degrees

SELECT DEGREES(3.14159) AS degrees_value;

This query will return approximately 180, as converting π radians (approximately 3.14159) results in about 180 degrees.

Convert π/2 radians to degrees

SELECT DEGREES(1.5708) AS degrees_value;

This query calculates the conversion of π/2 radians (approximately 1.5708) to degrees, resulting in about 90, since π/2 radians is the equivalent of a 90-degree angle.