DEGREES function
Use the DEGREES function to convert the value of an expression or host variable representing a number of radians to the equivalent number of degrees.
The radian_expression or host variable that is the only argument to this function must be a numeric data type (or a non-numeric data type that can be converted to a number) that the database server evaluates in units of radians, and converts to units of degrees.
The return value is a number of type DECIMAL (32, 255).
In both of the examples that follow, the argument to DEGREES evaluates to 6 radians, and the return value is 343.774677078494 degrees:
EXECUTE FUNCTION DEGREES (6);
EXECUTE FUNCTION DEGREES ("6");
The DEGREES function
converts radians to degrees according to the following formula:
(number of radians) * (180/pi) = (number of degrees)
Here pi represents
the ratio of the circumference of a circle to its diameter. Results
of arithmetic calculations that use the transcendental number pi as
the divisor of a rational number always include rounding error.