Binary number manipulation
Tim Roberts
timr at probo.com
Sun Dec 7 14:37:20 EST 2003
"Matthew A. Berglund" <matt at satbp.com> wrote:
>
>Thanks everybody.
>
>I settled on the
>((high << 8) | low)
>As this fits my need for the moment.
But this solves a very different problem from the one you originally
posted, which was ((high << 16) | low). If you need to combine WORDS, then
the solution you have settled on will produce the wrong answers.
--
- Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the Python-list
mailing list