We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbeef21 commit e2e3e41Copy full SHA for e2e3e41
Doc/library/string.rst
@@ -737,10 +737,10 @@ Using the comma or the underscore as a digit group separator::
737
'4996_02d2'
738
>>> '{:_}'.format(123456789.123456789)
739
'123_456_789.12345679'
740
- >>> '{:._}'.format(123456789.123456789)
741
- '123456789.123_456_79'
742
- >>> '{:_._}'.format(123456789.123456789)
743
- '123_456_789.123_456_79'
+ >>> '{:.,}'.format(123456789.123456789)
+ '123456789.123,456,79'
+ >>> '{:,._}'.format(123456789.123456789)
+ '123,456,789.123_456_79'
744
745
Expressing a percentage::
746
0 commit comments