struct, IEEE-754 and internal representation
Grant Edwards
grante at visi.com
Wed Nov 9 18:15:50 EST 2005
On 2005-11-09, ej <> wrote:
> If that's true, then I guess I am confused why Python is displaying
> 148.72999572753906 when you unpack the 4 bytes, implying a lot more
> precision that was available in the original 32-bits? Python is doing
> 64-bit floating point here?
Yes. C-Python "float" objects are of the C type "double" and
use 64-bit IEEE-754 representation on all the common platforms
I know about.
--
Grant Edwards grante Yow! .. or were you
at driving the PONTIAC that
visi.com HONKED at me in MIAMI last
Tuesday?
More information about the Python-list
mailing list