Skip to main content

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

This example shows how to return the quotient of two complex numbers.

// How to get the quotient of two comlex numbers.

// Use a function to get the quotient.

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