COS Function [Numeric]

Returns the cosine of a number, expressed in radians.

Syntax

COSnumeric-expression )

Parameters

Parameters

Parameter

Description

numeric-expression

The angle, in radians.

Returns

This function converts its argument to DOUBLE, performs the computation in double-precision floating point, and returns a DOUBLE as the result. If the parameter is NULL, the result is NULL.

Example

The following statement returns the value 0.86781:

SELECT COS( 0.52 ) FROM iq_dummy

Standards and Compatibility

  • SQL—Vendor extension to ISO/ANSI SQL grammar.

  • Sybase—Compatible with Adaptive Server Enterprise.

Related reference
ATAN2 Function [Numeric]
ATAN Function [Numeric]
ASIN Function [Numeric]
ACOS Function [Numeric]
COT Function [Numeric]
SIN Function [Numeric]
TAN Function [Numeric]