Returns the arc cosine of a numeric value as a DOUBLE value. Returns NULL if numValue is NULL. Returns an error if numValue is less than 0 or greater than 1.

Syntax

ACOS(numValue)

Arguments

numValue: Any of the supported numeric data types.

Examples

SELECT numberCol, ACOS(numberCol) AS numberColACOS FROM MYSQL.inventory.cust;

-- ACOS(0.3)
-- Returns 1.2661036727795