TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

IMDIV

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

Returns the quotient of two complex numbers.

Parameters:

Name Type Description
arg1 any

Is the complex numerator or dividend.

arg2 any

Is the complex denominator or divisor.

Returns:

Type
number | string | boolean

Example

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

Resulting document