decimal binary number is not included AFAIK<br><br><div class="gmail_quote">On Tue, Mar 30, 2010 at 8:43 PM, aditya <span dir="ltr"><<a href="mailto:bluemangroupie@gmail.com">bluemangroupie@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">To get the decimal representation of a binary number, I can just do<br>
this:<br>
<br>
int('11',2) # returns 3<br>
<br>
But decimal binary numbers throw a ValueError:<br>
<br>
int('1.1',2) # should return 1.5, throws error instead.<br>
<br>
Is this by design? It seems to me that this is not the correct<br>
behavior.<br>
<br>
- Aditya<br>
<font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br>