Binary numbers

Douglas Soares de Andrade dsa at unilestemg.br
Wed Jun 8 05:00:00 EDT 2005


Hi!

Em Quarta 08 Junho 2005 09:38, Guyon Morée escreveu:
> Don't know if this is what you mean, but:
>
> Binary to decimal:
> >>> bin_num = '100001011'
> >>> int(bin_num, 2)
>
> 267

Dont know this way of using it. Thanks for the teachings :)

See ya !

-- 
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