Skip to main content

BINOMDIST

Returns the individual term binomial distribution probability.

Syntax

expression.BINOMDIST(arg1, arg2, arg3, arg4);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe number of successes in trials.
arg2RequiredApiRange | ApiName | numberThe number of independent trials.
arg3RequiredApiRange | ApiName | numberThe probability of success on each trial.
arg4RequiredApiRange | ApiName | booleanSpecifies if this is the cumulative distribution function (-true) or the probability mass function (-false).

Returns

number

Example

let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.BINOMDIST(50, 67, 0.45, false));