Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

COS (Transact-SQL)

Is a mathematical function that returns the trigonometric cosine of the specified angle, in radians, in the specified expression.

Topic link icon Transact-SQL Syntax Conventions


COS ( float_expression )

float_expression

Is an expression of type float.

The following example returns the COS of the specific angle.

DECLARE @angle float
SET @angle = 14.78
SELECT 'The COS of the angle is: ' + CONVERT(varchar,COS(@angle))
GO

Here is the result set.

The COS of the angle is: -0.599465                      

(1 row(s) affected)

Community Additions

ADD
Show:
© 2015 Microsoft