Return the arccosine of a number:
The result will be:
The acos() method returns the arccosine of a number as a value value between 0 and PI radians.
Note: If the parameter x is outside the range -1 to 1, the method will return NaN.
Tip: -1 will return the value of PI.
The acos() method is supported in all major browsers.
|x||Required. A number|
|Number||A Number, from 0 to PI, or NaN if the value is outside the range of -1 to 1|
Your message has been sent to W3Schools.