Newbie: displaying binary numbers

Steven Adams adams_s at lab.eng.usyd.edu.au
Mon Jun 12 00:55:03 EDT 2000


Hi all,

I'm trying to display integers as binary numbers, I know there are the calls
for making hexadecimal and octal strings, but couldn't find anything for
binary?

are there any modules, or operations not in the docs?

all I need is to convert a number to a binary with n bits.

thanks, Steven





More information about the Python-list mailing list