python log() function
Laurent Pointal
laurent.pointal at laposte.net
Sat Dec 8 12:10:25 EST 2001
Oleg Broytmann <phd at phd.pp.ru> wrote in
news:mailman.1007815211.29346.python-list at python.org:
> This is integer division. So you've calculted log(2)/log(2) :) Use
> floting point division: 20.0/7.
Or switch to 2.2 and use:
>>> from __future__ import division
>>> 20/7
2.8571428571428572
GVR seem to be on the right way... even if it needs programmers to change
their code and coding.
A+
Laurent.
More information about the Python-list
mailing list