Calculate and return the arccosine (inverse cosine) of a number.
SELECT ACOS(0.25); |
The ACOS() function computes the arc cosine of a number within the range of -1 to 1; outside this range, the function returns NULL.
ACOS(number) |
Parameter |
Description |
number |
Required. A numerical value for which the arc cosine will be calculated. |
Works in: |
Available in SQL Server from 2008 onward, as well as in Azure SQL Database, Azure SQL Data Warehouse, and Parallel Data Warehouse. |
Compute and return the arccosine (inverse cosine) of a given number.
SELECT ACOS(-0.8); |