summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2008-12-19 09:06:07 +0000
committerRaymond Hettinger <python@rcn.com>2008-12-19 09:06:07 +0000
commitba666a59db2e90fec979e40789d70ba774f38ab6 (patch)
tree08fe65ff83231207c2bea162f539e5040dc4358f /Python
parent2b97b71b6f22abe4e4208226580eb2da403a66ca (diff)
downloadcpython-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')
0 files changed, 0 insertions, 0 deletions