Math.log(numeric) â floatMath.log(num,base) â float
Class Public methods
Returns the natural logarithm of numeric. If additional second
argument is given, it will be the base of logarithm.
Math.log(1) #=> 0.0
Math.log(Math::E) #=> 1.0
Math.log(Math::E**3) #=> 3.0
Math.log(12,3) #=> 2.2618595071429146