TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

TANH

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

Returns the hyperbolic tangent of a number.

Parameters:

Name Type Description
arg1 number

Is any real number.

Returns:

Type
number | string | boolean

Example

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

Resulting document