[issue3724] math.log(x, 10) gives different result than math.log10(x)
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>
More information about the Python-bugs-list