Export (0) Print
Expand All
ABS
ALL
AND
ANY
AVG
bit
COS
COT
DAY
EXP
GO
IN
LEN
LOG
MAX
MIN
NOT
OR
PI
SET
SIN
STR
SUM
TAN
USE
VAR
Expand Minimize

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 type float.

Return Types

float

Examples

This example returns the COS of the given 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)

See Also

Mathematical Functions

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft