On Dec 8, 9:34 pm, "Mario M. Mueller" <[EMAIL PROTECTED]> wrote: > Hi, > > I have a binary file containing 3 byte float values (big endian). How can I > read them into python? The struct module does not work, since it expects 4 > byte floats. > > Any hints? > > Mario
What does a three-byte float look like? To write an unpack routine from scratch, one would need to know position & size of the mantissa and exponent, position of sign bit, how infinities, NaN, -0 etc are represented (if at all) ... -- http://mail.python.org/mailman/listinfo/python-list