IMDIV
Returns the quotient of two complex numbers.
Syntax
expression.IMDIV(arg1, arg2);
expression - A variable that represents a ApiWorksheetFunction class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| arg1 | Required | ApiRange | ApiName | number | The complex numerator or dividend in the x + yi or x + yj form. | |
| arg2 | Required | ApiRange | ApiName | number | The complex denominator or divisor in the x + yi or x + yj form. |
Returns
number
Example
This example shows how to return the quotient of two complex numbers.
- Code
- Result
// How to get the quotient of two comlex numbers.
// Use a function to get the quotient.
let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
worksheet.GetRange("A1").SetValue(func.IMDIV("-2+2.5i", "0.1+1.5j"));