Skip to content
Reference > Methods

acos(value)

Definition

Double acos(Number value)

Description

Returns a Double that is the arc cosine of a value, the returned angle is expressed in radians in the range of -pi/2 to pi/2.

Parameter Definition

Name Type Description
value Number Input value

Examples

Double r1 = acos(1); // r1 == 0.0
Double r2 = acos(0.5D); // r2 == 1.0471975511965979