[issue1289118] timedelta multiply and divide by floating point

Daniel Stutzbach report at bugs.python.org
Mon May 24 21:50:03 CEST 2010


Daniel Stutzbach <daniel at stutzbachenterprises.com> added the comment:

I don't have a strong feeling about the method of rounding.  My thinking is: If my application is sensitive to how the last microsecond is rounded, then I shouldn't be using a type that only gives me 1-microsecond precision.

(Likewise, if my application is sensitive to how the last binary digital of the floating point mantissa is rounded ... I'm in trouble)

That said, round-to-nearest strikes me as the least-surprising approach.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1289118>
_______________________________________


More information about the Python-bugs-list mailing list