Jean-Baptiste PERIN <[EMAIL PROTECTED]> wrote: > I read 4 bytes from a binary file. > > These bytes represent a floating point number (mantisse exponent form) > > How can I get a float from these bytes ?
See the docs for module struct, specifically the struct.unpack function, if the float is in the binary format your machine expects (or possibly that but with the wrong endianity). If the float's binary format is different from what your machine uses, you're in for a lot of painful bit-twiddling. Alex -- http://mail.python.org/mailman/listinfo/python-list