GAMMALN
Returns the natural logarithm of the gamma function.
Syntax
expression.GAMMALN(arg1);
expression
- A variable that represents a ApiWorksheetFunction class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
arg1 | Required | ApiRange | ApiName | number |
Returns
number
Example
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
var ans = oFunction.GAMMALN(0.5);
oWorksheet.GetRange("B2").SetValue(ans);