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 mark.dickinson
Recipients belopolsky, eric.smith, mark.dickinson, skrah
Date 2010-07-06.19:16:18
SpamBayes Score 0.034445737
Marked as misclassified No
Message-id <1278443781.67.0.145535463031.issue9009@psf.upfronthosting.co.za>
In-reply-to
Content
r82614: add functionality to change FPU rounding mode (via float.__setround__ and float.__getround__ functions), on platforms that support the standard C99 fesetround and fegetround functions:

>>> float.__getround__()
'tonearest'
>>> 1e300 * 1e300
inf
>>> float.__setround__("downward")
>>> 1e300 * 1e300
1.7976931348623157e+308

This is just temporary, so that I can test that FPU rounding mode doesn't affect results of string-to-float and float-to-string conversions.  I'm not planning to merge any of r82614 back to py3k.
History
Date User Action Args
2010-07-06 19:16:21mark.dickinsonsetrecipients: + mark.dickinson, belopolsky, eric.smith, skrah
2010-07-06 19:16:21mark.dickinsonsetmessageid: <1278443781.67.0.145535463031.issue9009@psf.upfronthosting.co.za>
2010-07-06 19:16:19mark.dickinsonlinkissue9009 messages
2010-07-06 19:16:18mark.dickinsoncreate