unpack('>f', b'\x00\x01\x00\x00')
Hrvoje Niksic
hniksic at xemacs.org
Thu Dec 1 05:21:13 EST 2011
Chris Rebert <clp2 at rebertia.com> writes:
> C does not have a built-in fixed-point datatype, so the `struct`
> module doesn't handle fixed-point numbers directly.
The built-in decimal module supports fixed-point arithmetic, but the
struct module doesn't know about it. A bug report (or patch) by someone
who works with binary representations of fixed-point would be a good
start to improve it.
More information about the Python-list
mailing list