Description

Arccosine function. The arccosine is the angle whose cosine is number.

Returns

The arccosine, in radians, of a number.

Category

Function syntax

ACos(number)

See also

CosSinASinTanAtnPi

Parameters

Parameter

Description

number

Cosine of an angle. The value must be between -1.0 and 1.0, inclusive.

Usage

The range of the result is 0 to p. To convert degrees to radians, multiply degrees by p/180. To convert radians to degrees, multiply radians by 180/p.

Example

<cfscript>
   number=0.5;
   writeOutput(acos(0.5));  // Returns 1.04719755
</cfscript>

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy