[SciPy-User] Inverse of binary_repr

Robert Kern robert.kern@gmail....
Tue Mar 27 09:06:40 CDT 2012


On Tue, Mar 27, 2012 at 15:03, Alexander Borghgraef
<alexander.borghgraef.rma@gmail.com> wrote:
> Hi all,
>
>  Is there an inverse function of binary_repr, which takes a binary string
> representation of a number ( like '100') and returns an integer?

[~]
|1> int('100', 2)
4

-- 
Robert Kern


More information about the SciPy-User mailing list