跳到主要内容

IMDIV

返回两个复数的商。

语法

expression.IMDIV(arg1, arg2);

expression - 表示 ApiWorksheetFunction 类的变量。

参数

名称必需/可选数据类型默认值描述
arg1必需ApiRange | ApiName | numberx + yix + yj 形式表示的复数分子或被除数。
arg2必需ApiRange | ApiName | numberx + yix + yj 形式表示的复数分母或除数。

返回值

number

示例

在电子表格中将一个复数除以另一个。

// How do I divide two complex numbers in a spreadsheet?

// Get the quotient of complex numbers in a spreadsheet.

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