A function that returns the angle, in radians, whose cosine is the specified float expression. This is also called arccosine.
Transact-SQL Syntax Conventions
float_expression
An expression of either type float or of a type that can implicitly convert to float. Only a value ranging from -1.00 to 1.00 is valid. Values outside this range return NULL, and ASIN will report a domain error.
float
This example returns the ACOS
value of the specified number.
SET NOCOUNT OFF;
DECLARE @cos float;
SET @cos = -1.0;
SELECT 'The ACOS of the number is: ' + CONVERT(varchar, ACOS(@cos));
Here is the result set.