how to convert 3 byte to float
Hendrik van Rooyen
mail at microcorp.co.za
Mon Dec 10 01:52:51 EST 2007
"Mario M. Mueller" <ne...ller at arcor.de> wrote:
> I uploaded a short sample data file under
> http://www.FastShare.org/download/test.bin - maybe one can give me another
> hint... In a full data example max value is 1179760 (in case one looks only
> at the eye-cathing "65535"+- values).
I clicked on the link and got nothing but rubbish trying to predict how old
I would get, so I gave up and am flying blind.
Some A to D's are not two's complement, but have strange formats with an
independent sign bit in the highest order.
And of course there is big and little endian - so there are something like
2x2 = 4 things to try - twos compl. big and little, and signed big and little.
Unless there is a protocol interfering - how do you know, in the byte stream,
where a value starts and stops - is it cr,lf delimited?
- Hendrik
More information about the Python-list
mailing list