DB2 Version 9.7 for Linux, UNIX, and Windows

DEGREES scalar function

Read syntax diagramSkip visual syntax diagram
>>-DEGREES--(--expression--)-----------------------------------><

The schema is SYSIBM. (The SYSFUN version of the DEGREES function continues to be available.)

The DEGREES function returns the number of degrees of the argument, which is an angle expressed in radians.

The argument can be any built-in numeric data type. If the argument is decimal floating-point, the operation is performed in decimal floating-point; otherwise, the argument is converted to double-precision floating-point for processing by the function.

If the argument is DECFLOAT(n), the result is DECFLOAT(n); otherwise, the result is a double-precision floating-point number. The result can be null; if the argument is null, the result is the null value.

Example: