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, loewis, vstinner
Date 2008-10-13.21:59:22
SpamBayes Score 2.7856595e-07
Marked as misclassified No
Message-id <1223935163.36.0.318944961997.issue4114@psf.upfronthosting.co.za>
In-reply-to
Content
Martin is correct.  I expected (naively) that struct would zero pad the
digits beyond the significant digits of a float.  As to whether it's
exact or not, see my first message:
>>> v=1.8183e-7
>>> v
1.8183000000000001e-07

Since 32 bit floats only have ~7 digits of precision, I expected to get
the same thing back.  Not 7 digits + garbage.

Like I said, you can mark this bug as invalid since Python is just
reflecting what C is doing.
History
Date User Action Args
2008-10-13 21:59:23TD22057setrecipients: + TD22057, loewis, vstinner
2008-10-13 21:59:23TD22057setmessageid: <1223935163.36.0.318944961997.issue4114@psf.upfronthosting.co.za>
2008-10-13 21:59:22TD22057linkissue4114 messages
2008-10-13 21:59:22TD22057create