Converts real and imaginary coefficients into a complex number.
Name | Type | Description |
arg1 | any | Is the real coefficient of the complex number. |
arg2 | any | Is the imaginary coefficient of the complex number. |
arg3 | any | Is the suffix for the imaginary component of the complex number. |
builder.CreateFile("xlsx"); var oWorksheet = Api.GetActiveSheet(); var oFunction = Api.GetWorksheetFunction(); oWorksheet.GetRange("A1").SetValue(oFunction.COMPLEX(-2, 2.5, "i")); builder.SaveFile("xlsx", "COMPLEX.xlsx"); builder.CloseFile();