A numeric function that converts degrees to radians.
The returned data type is NUMERIC unless
numeric-expression is data type DOUBLE, in which case the returned data type is DOUBLE. The default precision is 36. The default scale is 18.
The following Embedded SQL example returns the radians equivalents corresponding to the degree values from 0 through 365 in 30-degree increments:
SET a=0
WHILE a<366 {
&sql(SELECT RADIANS(:a) INTO :b)
IF SQLCODE'=0 {
WRITE !,"Error code ",SQLCODE
QUIT }
ELSE {
WRITE !,"degrees ",a," = radians ",b
SET a=a+30 }
}