Author mark.dickinson
Recipients docs@python, eric.smith, mark.dickinson, sk1d
Date 2018-02-08.19:40:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1518118801.4.0.467229070634.issue32790@psf.upfronthosting.co.za>
In-reply-to
Content
> Maybe the documentation could also add this information in the chart for 'g' here:

Agreed that that would make sense. All the information is *there* in the docs (the alternate format is described a bit above that table), but it's not very easy to extract the information.

And that table entry is misleading as it currently is, since it suggests that trailing zeros are removed unconditionally: "In both cases insignificant trailing zeros are removed from the significand, and the decimal point is also removed if there are no remaining digits following it."

Perhaps we could adopt something like the wording in the C standard, where it says:

> Finally, unless the # flag is used, any trailing zeros are removed
> from the fractional portion of the result and the decimal-point
> character is removed if there is no fractional portion remaining.

Re-classifying as a documentation issue.
History
Date User Action Args
2018-02-08 19:40:01mark.dickinsonsetrecipients: + mark.dickinson, eric.smith, docs@python, sk1d
2018-02-08 19:40:01mark.dickinsonsetmessageid: <1518118801.4.0.467229070634.issue32790@psf.upfronthosting.co.za>
2018-02-08 19:40:01mark.dickinsonlinkissue32790 messages
2018-02-08 19:40:01mark.dickinsoncreate