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, mark.dickinson, mcherm, rhettinger, stutzbach, tim.peters, vstinner
Date 2010-06-04.20:21:59
SpamBayes Score 0.054434862
Marked as misclassified No
Message-id <1275682921.87.0.0486946944464.issue8860@psf.upfronthosting.co.za>
In-reply-to
Content
> The timedelta(seconds=0.6112295) example is handled correctly

No, it's not!  It's being rounded *up* where it should be being rounded *down*.

> because 0.6112295 sec is not half way between two nearest microseconds

Exactly.  The actual value stored by the C double is a little closer to 0.611229 than to 0.611230.
History
Date User Action Args
2010-06-04 20:22:02mark.dickinsonsetrecipients: + mark.dickinson, tim.peters, mcherm, rhettinger, belopolsky, vstinner, stutzbach
2010-06-04 20:22:01mark.dickinsonsetmessageid: <1275682921.87.0.0486946944464.issue8860@psf.upfronthosting.co.za>
2010-06-04 20:21:59mark.dickinsonlinkissue8860 messages
2010-06-04 20:21:59mark.dickinsoncreate