diff options
author | Raymond Hettinger <python@rcn.com> | 2008-12-19 09:06:07 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2008-12-19 09:06:07 +0000 |
commit | ba666a59db2e90fec979e40789d70ba774f38ab6 (patch) | |
tree | 08fe65ff83231207c2bea162f539e5040dc4358f /Python/pythonrun.c | |
parent | 2b97b71b6f22abe4e4208226580eb2da403a66ca (diff) | |
download | cpython-git-ba666a59db2e90fec979e40789d70ba774f38ab6.tar.gz |
Fix-up and clean-up docs for int.bit_length().
* 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.
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions