andy-h
2/5/2014 - 6:20 PM

Get the logarithm of a number to a specified base.

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);
	};
}