acos

The Math.acos() method returns the arccosine (in radians) of a number

Syntax

acos(x)

Returns

Number 0 to PI. NaN if the parameter is outside the range of -1 to 1 or not numeric.

Parameters

x (float)
A number