summaryrefslogtreecommitdiffstats
path: root/Doc/library/math.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-09-21 01:35:18 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-09-21 01:35:18 (GMT)
commit9415afcce1a130e16b92dd10591bfaf813f6b45c (patch)
tree408782773d0dd5f630871cc8ed806c1c22f42129 /Doc/library/math.rst
parent811db3b71547896ad4d2731b906ca65f514e96b5 (diff)
downloadcpython-9415afcce1a130e16b92dd10591bfaf813f6b45c.zip
cpython-9415afcce1a130e16b92dd10591bfaf813f6b45c.tar.gz
cpython-9415afcce1a130e16b92dd10591bfaf813f6b45c.tar.bz2
meth.log2 doc: add a link to int.bit_length()
Diffstat (limited to 'Doc/library/math.rst')
-rw-r--r--Doc/library/math.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/math.rst b/Doc/library/math.rst
index d68cf11..62c0f34 100644
--- a/Doc/library/math.rst
+++ b/Doc/library/math.rst
@@ -191,6 +191,11 @@ Power and logarithmic functions
.. versionadded:: 3.3
+ .. seealso::
+
+ :meth:`int.bit_length` returns the number of bits necessary to represent
+ an integer in binary, excluding the sign and leading zeros.
+
.. function:: log10(x)