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