Choose where you’d like to start

acos()

Overview

The acos() function takes a number (representing a trignometric cosine) as an argument, and returns the angle (measured in radians) of that number.

Return Type

  • Decimal

Syntax

<variable> = <number>.acos();

(OR)

<variable> = acos(<number> );
ParameterDescriptionData type
<variable>Variable which will contain the returned value.DECIMAL
<number>The number whose inverse cosine value will be returned.NUMBER or DECIMAL

Examples

number= 0.5;
acosValue = number.acos();        // returns 1.0471975511965979

Get Started Now

Execute