problem with bcd and a number

Dan Stromberg drsalists at gmail.com
Thu Aug 4 20:40:51 EDT 2011


It sounds like you have what you need, but here's an amusing way of dealing
with a BCD byte:

>>> print int(hex(0x72).replace('0x', ''))
72

On Thu, Aug 4, 2011 at 5:15 PM, shawn bright <shawn at skrite.net> wrote:

> Thanks for your help on this, gents. Got it working now.
> shawn
>
> On Thu, Aug 4, 2011 at 2:28 PM, Dave Angel <davea at ieee.org> wrote:
>
>> nibbles from a byte
>
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110804/589ed632/attachment-0001.html>


More information about the Python-list mailing list