can anyone comment this log function code
Function LogB(Number as double,Base as integer) as Double Dim Lg as Single If Number <=0 then Err.Raise 5 , , "Logarithms for zero and negitive numbers are not defined" Exit Function End If For I = 0 to Number If Base ^ I = Number then LogB=I Exit Function ElseIf Base ^ I < Number And Base ^ (I+1) > Number then Lg = I For J= 1 to 99999 Lg = Lg + 0.00001 If Base ^ Lg >= Number Then LogB = Lg Exit Function End If NExt J End IF Next I End Function
I can't understand this how he build log function
sometimes when we want I don't know how to say in english i think
we have to find 2\3 of 9 we know that is 6 but also we can multi ply 2 and 3 and to be 6
In the class we have 16 girls and are 4\7 of class. How many male have tha class.
mutiply 4 and 7 = 28, 28 - 16 = 12
so class have 12 boys.
continue to you see youu