I searched the form for logarithm and found this,
http://www.picbasic.co.uk/forum/show...ight=Logarithm