| title | ms.custom | ms.date | ms.prod | ms.reviewer | ms.suite | ms.technology | ms.tgt_pltfrm | ms.topic | f1_keywords | dev_langs | helpviewer_keywords | ms.assetid | caps.latest.revision | author | ms.author | manager | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Math.acos Function (JavaScript) | Microsoft Docs |
01/18/2017 |
windows-client-threshold |
|
language-reference |
|
|
|
828cb3c3-bdf7-4bb7-97ae-3617ce4b2d62 |
13 |
mikejo5000 |
mikejo |
ghogen |
Returns the arc cosine (or inverse cosine) of a number.
Math.acos(number)
The required number argument is a numeric expression.
The arc cosine of the number argument, in radians.
The following code shows how to use the acos function.
var v1 = Math.acos(-1.0);
var v2 = Math.cos(-1.0);
document.write(v1);
document.write("<br/>");
document.write(v2);
// Output:
// 3.141592653589793
// 0.5403023058681398
Applies To: Math Object
[!INCLUDEjsv1]
Math.asin Function
Math.atan Function
Math.cos Function
Math.sin Function
Math.tan Function
Math Object