TRY NEW VERSION

IMSUB

IMSUB(arg1, arg2) → { number | string | boolean }

Returns the difference of two complex numbers.

Parameters:

Name Type Description
arg1 any

Is the complex number from which to subtract inumber2.

arg2 any

Is the complex number to subtract from inumber1.

Returns:

Type
number | string | boolean

Example

Copy code
builder.CreateFile("xlsx");
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.IMSUB("1+3i", "-2+2.5i"));
builder.SaveFile("xlsx", "IMSUB.xlsx");
builder.CloseFile();

Resulting document