Tim Peters added the comment: 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. ---------- nosy: +tim_one __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1694> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com