This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author TD22057
Recipients TD22057
Date 2008-10-13.17:11:40
SpamBayes Score 1.9106992e-06
Marked as misclassified No
Message-id <1223917903.14.0.727253011599.issue4114@psf.upfronthosting.co.za>
In-reply-to
Content
FYI Actual version is 2.5.2 running on Linux RHE4.

>>> import struct
>>> fmt ='>f'
>>> v=1.8183e-7
>>> v
1.8183000000000001e-07
>>> s=struct.pack(fmt,v)
>>> struct.unpack(fmt,s)
(1.818300034983622e-07,)

Looks to me like the float->double conversion is not being zeroed out
before the 4 bytes are written to it.  FYI this is a fairly serious
issue since it leads to incorrect results be read from files (at least
for me anyway).
History
Date User Action Args
2008-10-13 17:11:43TD22057setrecipients: + TD22057
2008-10-13 17:11:43TD22057setmessageid: <1223917903.14.0.727253011599.issue4114@psf.upfronthosting.co.za>
2008-10-13 17:11:41TD22057linkissue4114 messages
2008-10-13 17:11:40TD22057create