Arbitrary Base

function logx(val:Number, base:Number=10):Number {
return Math.log(val)/Math.log(base)
}


This is the simple functon Grant Skinner, gave us to calculate logarithms with base in Actionscript 3.0
Newer Post Older Post Home