FACT
function FACT(arg1: number = null): number | string | boolean
Description
Returns the factorial of a number, equal to 123*...* Number.
Parameters
- arg1
number
null Is the nonnegative number you want the factorial of.
Returns
number | string | boolean
Try It
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.FACT(123));