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 abbeyj, eric.smith, mark.dickinson, tim.peters
Date 2009-06-05.20:10:39
SpamBayes Score 8.542651e-07
Marked as misclassified No
Message-id <1244232640.16.0.947575155608.issue6198@psf.upfronthosting.co.za>
In-reply-to
Content
[Mark]
> Out of interest, what does '%#.0f' % 1.5 produce on
> Python 2.7/Windows?  I'd expect to get '2.' both for
> round-half-to-even and round-half-away-from-zero.
> Does Windows round this down to '1.' instead?

[Eric]
> Windows in trunk gives '2.'.

Thanks.  I was mainly wondering why you'd commented out the
line "%#.0f 1.5 -> 2." in the formatfloat_testcases.txt
file.

[Eric, about zero formatting on Windows]
> So this isn't a problem we caused with the short repr work, it's 
> pre-existing. I don't think it's worth working around, but that's me.

I agree it doesn't seem worth working around.  Let's wait until
somebody complains. :-)
History
Date User Action Args
2009-06-05 20:10:40mark.dickinsonsetrecipients: + mark.dickinson, tim.peters, eric.smith, abbeyj
2009-06-05 20:10:40mark.dickinsonsetmessageid: <1244232640.16.0.947575155608.issue6198@psf.upfronthosting.co.za>
2009-06-05 20:10:39mark.dickinsonlinkissue6198 messages
2009-06-05 20:10:39mark.dickinsoncreate