跳到主要内容

PHI

Returns the value of the density function for a standard normal distribution.

Syntax

expression.PHI(arg1);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe number for which the density of the standard normal distribution will be returned.

Returns

number

Example

const worksheet = Api.GetActiveSheet();

//method params
let number = 5;

worksheet.GetRange("A1").SetValue(number);

let func = Api.GetWorksheetFunction();
let ans = func.PHI(number);

worksheet.GetRange("C1").SetValue(ans);