Binary numbers
Douglas Soares de Andrade
dsa at unilestemg.br
Tue Jun 7 17:08:34 EDT 2005
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.
Thats why im asking this.
And another question... if python has not a way to do this, why i let me use
oct(), hex() and not bin() ?
Thanks for the help !
--
Douglas Soares de Andrade
http://douglasandrade.cjb.net - dsa at unilestemg.br
UnilesteMG - www.unilestemg.br
ICQ, MSN = 76277921, douglas at tuxfamily.org
More information about the Python-list
mailing list