IMSUB
Returns the difference of two complex numbers expressed in the <em>x + yi</em> or <em>x + yj</em> form.
Syntax
expression.IMSUB(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 number from which to subtract the second number. | |
arg2 | Required | ApiRange | ApiName | number | The complex number to subtract from the first number. |
Returns
number
Example
- Code
- Result
let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.IMSUB("1+3i", "-2+2.5i"));