Binary numbers

Dan Bishop danb_83 at yahoo.com
Tue Jun 7 20:34:41 EDT 2005


Douglas Soares de Andrade wrote:
> Hi !
>
> How to work with binary numbers in python ? Is there a way to print a number
> in its binary form like we do with oct() or hex() ?
>
> Im doing a project that i have to work with binaries and i tired of convert
> numbers to string all the time to perform some operations.
>
> I searched about it in many places like python.org and google, but not found
> anything useful.

Search for "itoa".




More information about the Python-list mailing list