Mathlog with a second parameter wasnt implemented at that time and so the only way of achieving this was a custom implementation since if you didnt realize - its a very old post youve necro-bumped though others might find this as an addition to the documentation that already exists. The numerical value for logarithm to any base a from any base b can be calculated with the following change of base identity. Since Mathlog x in JavaScript returns the natural logarithm of x same as ln x for base 10 you can divide by Mathlog 10 same as ln 10.
Parameters for this function should always be a number otherwise it return NaN ie not a number when its parameter taken as string.
The javalangMathlogdouble a returns the natural logarithm base e of a double value. The javalangMathlogdouble a returns the natural logarithm base e of a double value. The numerical value for logarithm to any base a from any base b can be calculated with the following change of base identity. Log100 This usually means that the base is really 10.