Example

Return the cosine of a number:

SELECT COS(2);

Definition and Usage

The COS() function returns the cosine of a number.

Syntax

COS(number)

Parameter Values

Parameter Description
number Required. A numeric value

Technical Details

Works in: From MySQL 4.0

More Examples

Example

Return the cosine of a number:

SELECT COS(PI());


Login
ADS CODE