Get Arc Cosine Method

The Get Arc Cosine method returns the arc cosine of the value that the number argument contains, expressed in radians from 0 to pi. If any of the following situations are true, then it returns NaN:

  • The method cannot convert the value to a number.

  • The value is greater than 1 or less than negative 1.

This method uses the same argument as the Get Absolute Value method. For more information, see Get Absolute Value Method.

Format

Math.acos(number)