Reading a non-standard floating point format

Bengt Richter bokr at oz.net
Sat Apr 26 21:55:07 EDT 2003


On Sat, 26 Apr 2003 19:41:43 -0400, "Tim Peters" <tim_one at email.msn.com> wrote:
[...]
>There's no way to guess without examples, though.  If you can, show us the
>48-bit byte strings for these numbers:
>
>    0.0
>    1.0
>    1.25
>    2.9e-39
>    1.7e38
>
>That should be enough to fill in the missing pieces.
>
Maybe include
    -1.25
also?
And can minus zero be generated?
Are numbers sign/magnitude or?

Regards,
Bengt Richter




More information about the Python-list mailing list