python log()

Ian Duxbuz at bbtinternet.com
Mon Dec 10 17:37:58 EST 2001


Hello I am new to python and am trying to use it to work out a sum
log(20/7) / log(2)
which gives result
1.0

I am expecting to get 1.51 as a result, and using different langs such as
perl or php, I get the desired result of 1.51

It seems to me that python only goes to a certain decimal place, not as much
as the other compilers, can this be altered in anyway?

Ta.







More information about the Python-list mailing list