Download MetaTrader 5

MathLog

The function returns a natural logarithm.

double  MathLog(
   double  val      // value to take the logarithm
   );

Parameters

val

[in]  Value logarithm of which is to be found.

Return Value

The natural logarithm of val in case of success. If val is negative, the function returns NaN (undetermined value). If val is equal to 0, the function returns INF (infinity).

Note

Instead of MathLog() you can use log().

See also

Real types (double, float)


Updated: 2015.12.03