跳到主要内容

IMDIV

Returns the quotient of two complex numbers.

Syntax

expression.IMDIV(arg1, arg2);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe complex numerator or dividend in the <em>x + yi</em> or <em>x + yj</em> form.
arg2RequiredApiRange | ApiName | numberThe complex denominator or divisor in the <em>x + yi</em> or <em>x + yj</em> form.

Returns

number

Example

let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.IMDIV("-2+2.5i", "0.1+1.5j"));