SIN Function

Purpose

Returns a floating-point value that is the sine of an arithmetic expression.

Syntax

SIN(x)

Parameters

x is an arithmetic expression.

Description

The SIN function returns a floating-point value that is the sine of an arithmetic expression x, where x is an angle in radians such that -1 ≤ SIN(x) ≤ 1.

The sine is computed in floating-point, and the result has the same data type as x.

Examples

SIN(0.0)    /* returns 0.0 */

Restrictions

An SIN 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.