>2^x = y > >Taking logs on both sides (I will use natural logarithms, but any base will do): > >ln 2^x = ln y > >The left side can be changed, using standard properties of logarithms: > >x ln 2 = ln y > >Now, you only require the most basic algebra to change this to: > >x = ln y / ln 2 > >In VFP: > >x = log(y) / log(2) >>