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 dingo, mark.dickinson
Date 2009-03-13.22:37:29
SpamBayes Score 1.5709656e-14
Marked as misclassified No
Message-id <1236983873.84.0.975510324977.issue5473@psf.upfronthosting.co.za>
In-reply-to
Content
Actually the negative n case *is* quite different from the positive n,
although I think it's fair to say that the issue 1869 title covers both 
cases fairly well. :)

It's not at all hard to make sure that round(x, -n) correct for -22 <= -n 
<= 0 and any finite x, using the fact that the remainder fmod(x, 10.0**-n) 
is exactly representable as a float.  I'll try to find time to implement 
this before 3.1.  Positive n is still tricky, though.

Anyway, I'm going to close this and fold the discussion into issue 1869.
Thanks for the report!
History
Date User Action Args
2009-03-13 22:37:53mark.dickinsonsetrecipients: + mark.dickinson, dingo
2009-03-13 22:37:53mark.dickinsonsetmessageid: <1236983873.84.0.975510324977.issue5473@psf.upfronthosting.co.za>
2009-03-13 22:37:29mark.dickinsonlinkissue5473 messages
2009-03-13 22:37:29mark.dickinsoncreate