Name

Math.acos() — compute an arccosine

Synopsis

Math.acos(x)

Arguments

x

A number between −1.0 and 1.0.

Returns

The arccosine, or inverse cosine, of the specified value x. This return value is between 0 and π radians.

Get JavaScript: The Definitive Guide, 6th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.