[issue32790] Keep trailing zeros in precision for string format option g

2018-02-08 Thread Severin Wünsch
Severin Wünsch added the comment: This meet my needs. Maybe the documentation could also add this information in the chart for 'g' here: https://docs.python.org/3.7/library/string.html#format-specification-mini-language as only into the running text. As I did not notice it. As t

[issue32790] Keep trailing zeros in precision for string format option g

2018-02-07 Thread Severin Wünsch
New submission from Severin Wünsch : The documentation starts the the string format parameter 'g': General format. For a given precision p >= 1, this rounds the number to **p significant digits** and then formats the result in either fixed-point format or in scientific notation,