DEGREES Function

Returns the number of degrees for an angle in radians.

Category: Trigonometric
Returned data type: DOUBLE

Syntax

DEGREES(expression)

Arguments

expression

specifies any valid expression that evaluates to an angle specified in radians.

Data type BIGINT, DOUBLE, FLOAT, INTEGER, REAL, SMALLINT, TINYINT.
See <sql-expression>
FedSQL Expressions

Details

If expression is a null value, then the DEGREES function returns a null value. If the result is a number that does not fit into the range of a DOUBLE data type, the DEGREES function fails.

Example

The following statements illustrate the DEGREES function:
Statements
Results
select degrees(2*pi());
360
select degrees(pi());
180
select degrees(pi()/2);
90
select degrees(pi()/4);
45

See Also

Functions: