PI
function PI(): number | string | boolean
Description
Returns the value of Pi, 3.14159265358979, accurate to 15 digits.
Returns
number | string | boolean
Try It
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.PI());