COS Function

Returns the cosine in radians.

Category: Trigonometric
Returned data type: DOUBLE

Syntax

Arguments

expression

specifies any valid SQL expression that evaluates to a numeric value.

Data type DOUBLE
See <sql-expression>
FedSQL Expressions

Example

The following statements illustrate the COS function:
Statements
Results
select cos(0.5);
0.877583
select cos(0);
1
select cos(3.14159/3);
0.50003
Last updated: February 23, 2017