Calculate and return the cosine value of a given number.
SELECT COS(2); |
The COS() function computes the cosine of a given number.
COS(number) |
Parameter |
Description |
number |
Necessary: A value that is numeric. |
Works in: |
Available in SQL Server from 2008 onward, as well as in Azure SQL Database, Azure SQL Data Warehouse, and Parallel Data Warehouse. |
Provide the cosine value corresponding to a given number.
SELECT COS(PI()); |