COSD Function

Purpose

Returns a value that is the cosine of the specified angle expressed in degrees.

Syntax

COSD(x)

Parameters

x is a floating-point value.

Description

The COSD function returns a value that is the cosine of the angle x expressed in degrees. The result has the same value type as x such that -1 ≤ COSD(x) ≤ 1.

Examples

COSD(60.0)    /* returns 0.5 */

Restrictions

A COSD operation on floating-point decimal data is actually performed using the floating-point binary operation. Thus, the range of the operands and the result of the operation are limited to the ranges for floating-point binary numbers.