how to convert 3 byte to float

Hendrik van Rooyen mail at microcorp.co.za
Sun Dec 9 01:53:31 EST 2007


 "Tommy Nordgren" <tommy.nordgren at comhem.se> wrote:
>
> On 8 dec 2007, at 12.52, Mario M. Mueller 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).
> >
> > Mario
> > --
> One thing to consider: It is possible that one of the bytes
> contributes bits
> to BOTH the mantissa and the exponent ; Do you know the relative
> accurazy of the digitizer?

What is it digitising - if its an Analogue to Digital converter, then the 24
bits
may not be floats at all, but simple integer counts.

Is there no Fine Manual documenting the output format?

- Hendrik




More information about the Python-list mailing list