decimal to binary

Peter Hansen peter at
Fri Jul 25 15:01:10 CEST 2003

manuel wrote:
> How to convert a decimal to binary ?

No builtin function, but you could likely find lots of previous
questions like this, and answers.

If you don't feel like searching, can you post an example of
what you want in and what you want out?  Some people asking
this kind of question are confused about representations
of numbers and how data is really stored in computers, and 
they don't really want what they thing they want.

A quick Google groups search with "convert decimal binary"
reveals answers that would probably work for you.


More information about the Python-list mailing list