Re: How to convert he boolean values into integers

2009-06-25 Thread samwyse
>>> int('1010100110', 2) 678 On Jun 25, 7:06 am, krishna wrote: > Hi Guys, > > I need to convert 1010100110 boolean value to some think like 2345, if > its possible then post me your comment on this > > Advanced thanks for all > > Narayana perumal.G -- http://mail.python.org/mailman/listinfo/py

Re: How to convert he boolean values into integers

2009-06-25 Thread Ulrich Eckhardt
krishna wrote: > I need to convert 1010100110 boolean value to some think like 2345, if > its possible then post me your comment on this Yes, sure. You can simply sum up the digit values and then format them as decimal number. You can also just look up the number: def decode_binary(input):

How to convert he boolean values into integers

2009-06-25 Thread krishna
Hi Guys, I need to convert 1010100110 boolean value to some think like 2345, if its possible then post me your comment on this Advanced thanks for all Narayana perumal.G -- http://mail.python.org/mailman/listinfo/python-list