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 33c41bb commit e27ccc5Copy full SHA for e27ccc5
extra_tests/snippets/builtin_format.py
@@ -188,6 +188,11 @@ def test_zero_padding():
188
assert f"{12345.6 + 7890.1j:,}" == "(12,345.6+7,890.1j)"
189
assert f"{12345.6 + 7890.1j:_.3f}" == "12_345.600+7_890.100j"
190
assert f"{12345.6 + 7890.1j:>+30,f}" == " +12,345.600000+7,890.100000j"
191
+assert f"{123456:,g}" == "123,456"
192
+assert f"{123456:,G}" == "123,456"
193
+assert f"{123456:,e}" == "1.234560e+05"
194
+assert f"{123456:,E}" == "1.234560E+05"
195
+assert f"{123456:,%}" == "12,345,600.000000%"
196
197
# test issue 4558
198
x = 123456789012345678901234567890
0 commit comments