PHP acos() Function

PHP Math Reference : Return the arc cosine of different numbers

Definition and Usage

The acos() function returns the arc cosine of a number.

Tip: acos(-1) returns the value of Pi.

Syntax

acos(number);

Parameter Values

Parameter Description
number Required. Specifies a number in range -1 to 1

Technical Details

Return Value: The arc cosine of a number. Returns NAN if number is not in the range -1 to 1
Return Type: Float
PHP Version: 4+

❮ PHP Math Reference