Skip to main content

ACOS

A function that returns the angle, in radians, whose cosine is the specified float expression. This is also called arccosine.

Syntax​

ACOS ( numeric_expression )

Arguments​

numeric_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.

Return Type​

Returns values of type FLOAT64.

Examples​

Examples in this section use the example blockchain.

This example shows the results of using the ACOS function.

SELECT ACOS(real) FROM example;

Response:

ACOS(real) [FLOAT64]
NULL
1.57079632679
0
NULL