• Raymond Hettinger's avatar
    Fix-up and clean-up docs for int.bit_length(). · ba666a59
    Raymond Hettinger yazdı
    * Replace dramatic footnote with in-line comment about possible round-off errors in logarithms of large numbers.
    * Add comments to the pure python code equivalent.
    * replace floor() with int() in the mathematical equivalent so the type is correct (should be an int, not a float).
    * add abs() to the mathematical equivalent so that it matches the previous line that it is supposed to be equivalent to.
    * make one combined example with a negative input.
    ba666a59
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.bzrignore Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...