Message15184
Logged In: YES
user_id=31435
Yuck. It's a bug in not accounting for that rounding can
spill over the original bit width. structmodule's pack_float()
and pack_double() both have this flaw, although the one in
pack_double() is much subtler. A similar cut-and-paste
bug is in cPicke's save_float(). I'll fix all this.
Note: while "<f"'s result should be the byte-reversal
of ">f"'s, there's no defined relationship between either of
those and plain "f". "f" is platform-native in all respects. "<f"
and ">f" force an IEEE-like encoding, even on non-IEEE
platforms. |
|
Date |
User |
Action |
Args |
2007-08-23 14:11:58 | admin | link | issue705836 messages |
2007-08-23 14:11:58 | admin | create | |
|