TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

EXP

EXP(arg1) → { number | string | boolean }

Returns e raised to the power of a given number.

Parameters:

Name Type Description
arg1 number

Is the exponent applied to the base e. The constant e equals 2.71828182845904, the base of the natural logarithm.

Returns:

Type
number | string | boolean

Example

Copy code
builder.CreateFile("xlsx");
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.EXP(5));
builder.SaveFile("xlsx", "EXP.xlsx");
builder.CloseFile();

Resulting document