The function returns a natural logarithm.
[in] Value logarithm of which is to be found.
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).
Instead of MathLog() you can use log().