Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
COS (SQL Server Compact)
Collapse the table of content
Expand the table of content

COS (SQL Server Compact)

Mathematic function that returns the trigonometric cosine of the given angle, in radians, in the given expression.


COS ( float_expression ) 

float_expression

An expression of data types that can be implicitly converted to float.

The following example returns the cosine of various angles.

CREATE TABLE Cosine ("COS(0)" float, "COS(PI()/6)" float, "COS(PI()/4)" float, "COS(PI()/3)" float, "COS(PI()/2)" float);
INSERT INTO Cosine VALUES (COS(0), COS(PI()/6), COS(PI()/4), COS(PI()/3), COS(PI()/2));
SELECT * 
FROM Cosine;
Show:
© 2015 Microsoft