Mark Dickinson <dicki...@gmail.com> added the comment: > (in this case a division by 10.0)
Of course, that's not true: division by 10.0 is harmless when the result is exactly representable. It's actually a multiplication by pow(10.0, -1), which is worse... I'm currently working on incorporating David Gay's code for string <-> float conversions into Python. If these go in, then it would be straightforward to implement a fast, correctly-rounded round for floats based on a combination of Gay's strtod and dtoa functions. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5473> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com