A mathematical function that returns the trigonometric cosine of the specified angle - measured in radians - in the specified expression.
Transact-SQL Syntax Conventions
float_expression
An expression of type float.
float
This example returns the COS
value of the specified 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.
Azure SQL Data Warehouse and Azure SQL Data Warehouse Parallel Data Warehouse
This example returns the COS values of the specified angles:
Here is the result set.
cosCalc1 cosCalc2
-------- --------
-0.58 0.99