WorksheetFunction.Acos Method

Returns the arccosine, or inverse cosine, of a number. The arccosine is the angle whose cosine is Arg1. The returned angle is given in radians in the range 0 (zero) to pi.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Function Acos ( _
    Arg1 As Double _
) As Double
'Usage
Dim instance As WorksheetFunction
Dim Arg1 As Double
Dim returnValue As Double

returnValue = instance.Acos(Arg1)
double Acos(
    double Arg1
)

Parameters

  • Arg1
    Type: System.Double

    The cosine of the angle you want and must be from -1 to 1.

Return Value

Type: System.Double

Remarks

If you want to convert the result from radians to degrees, multiply it by 180/PI() or use the Degrees method.

See Also

Reference

WorksheetFunction Interface

WorksheetFunction Members

Microsoft.Office.Interop.Excel Namespace