Returns the value of Pi, 3.14159265358979, accurate to 15 digits.
This method doesn't have any parameters.
builder.CreateFile("xlsx"); var oWorksheet = Api.GetActiveSheet(); var oFunction = Api.GetWorksheetFunction(); oWorksheet.GetRange("A1").SetValue(oFunction.PI()); builder.SaveFile("xlsx", "PI.xlsx"); builder.CloseFile();