bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MySQL COS() Function

Concept visual

MySQL COS() Function

Pointer walk
two pointers
leftright102132436485116
left=0
right=6
1
3

Start at both ends

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());

Previous

❮ MySQL Functions

Next

Previous

MySQL CEILING() Function

Next

MySQL COT() Function