The mathematical SQL function COS returns the trigonometric cosine of the specified angle, in radians.
SQL Syntax: |
COS( number ) | |
Number: |
Any numeric expression. | |
Escape Syntax: |
{fn COS( number )} | |
Return Type: |
FLOAT | |
Examples:
SELECT COS(PI()), {fn cos(0.0)}
Return Values: -1, 1
see also:
SQL Numeric Functions
SIN
ACOS
ASIN