Message311847
> 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. |
|
Date |
User |
Action |
Args |
2018-02-08 19:40:01 | mark.dickinson | set | recipients:
+ mark.dickinson, eric.smith, docs@python, sk1d |
2018-02-08 19:40:01 | mark.dickinson | set | messageid: <1518118801.4.0.467229070634.issue32790@psf.upfronthosting.co.za> |
2018-02-08 19:40:01 | mark.dickinson | link | issue32790 messages |
2018-02-08 19:40:01 | mark.dickinson | create | |
|