DB2 Version 9.7 for Linux, UNIX, and Windows

RADIANS scalar function

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

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

The RADIANS function returns the number of radians for an argument that is expressed in degrees.

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: