acos function

float acos(x)

x float Value in range [-1, 1].

Returns the arc cosine of x in degrees. This value is in the range [0, 180].
If x is outside [-1, 1], nan is generated.

The acos function calculates the arc cosine of x, i.e. the value whose cosine is x.

Related