JavaScript tutorial:
acos method

 

Applies to: Math Object

The acos method is use to get the arccosine of a number.

Syntax

Math.acos(number)

The number argument is a numeric expression for which the arccosine is sought.

Return value

Returns the arccosine of a number.

Example

The return value is the arccosine of the number argument.

See also: asin Method, atan Method, cos Method, Math Object Methods, sin Method, tan Method