Download MetaTrader 5

MathExp1

Returns the value of the expression MathExp(x)-1.

double  MathExp1(
   double  value      // power for the number e
   );

Parameters

value

[in]  The number specifying the power.

Return Value

A value of the double type. In case of overflow the function returns INF (infinity), in case of underflow MathExp returns 0.

Note

At values of x close to 0, the MathExp1(x) function generates much more accurate values than the MathExp(x)-1 function.

Instead of the MathExp1() function you can use the expm1() function.

See also

Real types (double, float)