TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

GAMMA

GAMMA(arg1) → { number }

Returns the gamma function value.

Parameters:

Name Type Description
arg1 number

The value for which the gamma function will be calculated.

Returns:

Type
number

Example

Copy code
builder.CreateFile("xlsx");
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
var ans = oFunction.GAMMA(2.7);
oWorksheet.GetRange("B2").SetValue(ans);
builder.SaveFile("xlsx", "GAMMA.xlsx");
builder.CloseFile();


Resulting document