From 9415afcce1a130e16b92dd10591bfaf813f6b45c Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 21 Sep 2011 03:35:18 +0200 Subject: [PATCH] meth.log2 doc: add a link to int.bit_length() --- Doc/library/math.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Doc/library/math.rst b/Doc/library/math.rst index d68cf1157c0..62c0f34eefd 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)