Skip to content

Commit 3169743

Browse files
gh-131912: Use different grouping options for the integral and fractional parts (#132170)
1 parent 3980718 commit 3169743

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/string.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -737,10 +737,10 @@ Using the comma or the underscore as a digit group separator::
737737
'4996_02d2'
738738
>>> '{:_}'.format(123456789.123456789)
739739
'123_456_789.12345679'
740-
>>> '{:._}'.format(123456789.123456789)
741-
'123456789.123_456_79'
742-
>>> '{:_._}'.format(123456789.123456789)
743-
'123_456_789.123_456_79'
740+
>>> '{:.,}'.format(123456789.123456789)
741+
'123456789.123,456,79'
742+
>>> '{:,._}'.format(123456789.123456789)
743+
'123,456,789.123_456_79'
744744

745745
Expressing a percentage::
746746

0 commit comments

Comments
 (0)