RADIANS function
Use the RADIANS function to convert an expression or a host variable representing a number of degrees to the equivalent number of radians.
The return value is a number of type DECIMAL (32, 255).
The degree_expression that
is the only argument to this function must have 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 degrees, and converts to
units of radians:
EXECUTE FUNCTION RADIANS (100);
EXECUTE FUNCTION RADIANS ("100");
In both of the examples
above, the RADIANS argument evaluates to 100 degrees, and the
return value is 1.745328251994 radians. You can use a RADIANS
function expression as the argument to the COS, SIN,
or TAN function to return the respective trigonometric values
for that angle:COS(RADIANS (100))
SIN(RADIANS ("100"))
TAN(RADIANS (100))
The RADIANS function
converts degrees to radians according to the following formula:
(number of degrees) * (pi/180) = (number of radians)
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 dividend of a rational number always include rounding error.