Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

COS

SQL Server 2000

A mathematic function that returns the trigonometric cosine of the given angle (in radians) in the given expression.

Syntax
COS ( float_expression ) 
Arguments
float_expression
Is an expression of data types that can be implicitly converted to float.
Return Types

float

Examples

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.