Get the logarithm of a number to a specified base.
//returns the logarithm of `num` to base `base` if(!Math.logB){ Math.logB = function logB(num, base){ return Math.log(num)/Math.log(base); }; }