跳到主要内容

ERF_PRECISE

Returns the error function integrated between 0 and the specified lower limit.

Syntax

expression.ERF_PRECISE(arg1);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

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

Returns

number

Example

This example shows how to return the error function integrated between 0 and the specified lower limit.

// How to get an error function (from 0 to lower).

// Use function to get an error function set between 0 and lower limits.

let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.ERF_PRECISE(0.745));