Skip to main content

BINOM_INV

Returns the smallest value for which the cumulative binomial distribution is greater than or equal to a criterion value.

Syntax

expression.BINOM_INV(arg1, arg2, arg3);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe number of Bernoulli trials.
arg2RequiredApiRange | ApiName | numberThe probability of success on each trial, a number between 0 and 1 inclusive.
arg3RequiredApiRange | ApiName | numberThe criterion value, a number between 0 and 1 inclusive.

Returns

number

Example

let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
let ans = func.BINOM_INV(678, 0.1, 0.007);
worksheet.GetRange("B2").SetValue(ans);