how to convert 3 byte to float

Tim Roberts timr at probo.com
Sun Dec 9 02:24:16 EST 2007


"Mario M. Mueller" <news.mueller at arcor.de> wrote:

>Bjoern Schliessmann wrote:
>
>[...]
>> BTW, who in his mind designs three byte floats? Memory isn't that
>> expensive anymore. Even C bool is four bytes long.
>
>It's output of a digitizer (but not that old). I was also wondering about
>the reason for this limitation (maybe the design is ~20 years old).

The IEEE-754 standard was adopted in 1985.  Before that (and after that,
too), many people used whatever bit layout they wanted for floating point
numbers.
-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-list mailing list