Skip to main content

ERF

Returns the error function integrated between the specified lower and upper limits.

Syntax

expression.ERF(arg1, arg2);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe lower bound for integrating the error function.
arg2OptionalApiRange | ApiName | numberThe upper bound for integrating the error function.

Returns

number

Example

let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.ERF(-2));