Example
Return the cosine of a number:
sql
SELECT COS(2);
Definition and Usage
The COS() function returns the cosine of a number.
Syntax
text
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:
sql
SELECT COS(PI());