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 tim.peters
Recipients falk_steinhauer, mark.dickinson, tim.peters
Date 2007-12-31.21:35:39
SpamBayes Score 0.003294055
Marked as misclassified No
Message-id <1199136940.09.0.450649160016.issue1694@psf.upfronthosting.co.za>
In-reply-to
Content
Right, Unix-derived C libraries generally do IEEE-754 "round to
nearest/even" rounding, while Microsoft's do "add a half and chop"
rounding.  The Python reference manual says nothing about this, and
neither does the C standard (well, C89 doesn't; unsure about C99).

Python's round() function is independent of the platform C
string<->float conversions, and intentionally does (as documented) "add
a half and chop" rounding.
History
Date User Action Args
2007-12-31 21:35:40tim.peterssetspambayes_score: 0.00329405 -> 0.003294055
recipients: + tim.peters, mark.dickinson, falk_steinhauer
2007-12-31 21:35:40tim.peterssetspambayes_score: 0.00329405 -> 0.00329405
messageid: <1199136940.09.0.450649160016.issue1694@psf.upfronthosting.co.za>
2007-12-31 21:35:40tim.peterslinkissue1694 messages
2007-12-31 21:35:39tim.peterscreate