NORMSINV
Returns the inverse of the standard normal cumulative distribution (has a mean of zero and a standard deviation of one).
Syntax
expression.NORMSINV(arg1);
expression
- A variable that represents a ApiWorksheetFunction class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
arg1 | Required | ApiRange | ApiName | number | A probability corresponding to the normal distribution, a number between 0 and 1 inclusive. |
Returns
number
Example
- Code
- Result
const worksheet = Api.GetActiveSheet();
worksheet.GetRange("A1").SetValue(0.25);
//method params
let value = worksheet.GetRange("A1").GetValue();
let func = Api.GetWorksheetFunction();
let ans = func.NORMSINV(value);
worksheet.GetRange("C1").SetValue(ans);