[issue3724] math.log(x, 10) gives different result than math.log10(x)
Mark Dickinson
report at bugs.python.org
Tue Oct 14 13:59:06 CEST 2008
Mark Dickinson <dickinsm at gmail.com> added the comment:
Note that log2(int) -> float wouldn't entirely replace
numbits, due to loss of precision in the result.
e.g. log2(2**100), log2(2**100+1) and log2(2**100-1) would likely all
return exactly the same result (100.0), where numbits wants results of
101, 101 and 100 respectively.
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3724>
_______________________________________
More information about the Python-bugs-list
mailing list