Curriculum
Course: MYSQL
Login

Curriculum

MYSQL

MySQL References

0/140
Text lesson

COS

Example

Compute the cosine of a numerical value.

SELECT COS(2); 

Definition and Usage

The COS() function yields the cosine value of a given number.

Syntax

COS(number)

Parameter Values

Parameter

Description

number

Necessary: A numerical value is required.

Technical Details

Works in: From MySQL 4.0

More Examples

Example

Provide the cosine value of a given number.

SELECT COS(PI());