Share via


WorksheetFunction.Pi Method

Returns the number 3.14159265358979, the mathematical constant pi, accurate to 15 digits.

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

Syntax

'Declaration
Function Pi As Double
'Usage
Dim instance As WorksheetFunction
Dim returnValue As Double

returnValue = instance.Pi()
double Pi()

Return Value

Type: System.Double

See Also

Reference

WorksheetFunction Interface

WorksheetFunction Members

Microsoft.Office.Interop.Excel Namespace