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 eric.smith, mark.dickinson
Date 2009-10-10.19:28:51
SpamBayes Score 0.0004886287
Marked as misclassified No
Message-id <1255202932.85.0.142010342432.issue7098@psf.upfronthosting.co.za>
In-reply-to
Content
> It should strip all trailing zeros from the result:

Hmm.  Thinking about this some more, I don't think this is true:  format() shouldn't be throwing away significant information (in Decimal 
the number of trailing zeros *is* significant information) unless that's 
necessary to fit the result into the given precision.

So I think the current code is correct.

However, we could do with documenting the precise rules being used for 
Decimal formatting somewhere.
History
Date User Action Args
2009-10-10 19:28:53mark.dickinsonsetrecipients: + mark.dickinson, eric.smith
2009-10-10 19:28:52mark.dickinsonsetmessageid: <1255202932.85.0.142010342432.issue7098@psf.upfronthosting.co.za>
2009-10-10 19:28:51mark.dickinsonlinkissue7098 messages
2009-10-10 19:28:51mark.dickinsoncreate