problem with bcd and a number

Christoph Hansen ch at radamanthys.de
Thu Aug 4 21:52:45 CEST 2011


MRAB schrieb:

> The value is MSB * 100 + (LSB>>  4) * 10 + (LSB&  0xF)

i would say

(MSB >> 4)*100 + (MSB & 0xF)*10 + (LSB >> 4)

but who knows



More information about the Python-list mailing list