Mark Dickinson <dicki...@gmail.com> added the comment:

> 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.

----------
assignee:  -> docs@python
components: +Documentation
nosy: +docs@python

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32790>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to