Returns the absolute value (modulus) of a complex number.
Name | Type | Description |
arg1 | any | Is a complex number for which you want the absolute value. |
builder.CreateFile("xlsx"); var oWorksheet = Api.GetActiveSheet(); var oFunction = Api.GetWorksheetFunction(); oWorksheet.GetRange("A1").SetValue(oFunction.IMABS("-2+2.5i")); builder.SaveFile("xlsx", "IMABS.xlsx"); builder.CloseFile();