diff options
Diffstat (limited to 'tests/float/string_format_modulo.py')
-rw-r--r-- | tests/float/string_format_modulo.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/float/string_format_modulo.py b/tests/float/string_format_modulo.py index 681e9eb80..03c8dd00a 100644 --- a/tests/float/string_format_modulo.py +++ b/tests/float/string_format_modulo.py @@ -42,3 +42,5 @@ print(('%.40g' % 1e-1)[:2]) print(('%.40g' % 1e-2)[:2]) print(('%.40g' % 1e-3)[:2]) print(('%.40g' % 1e-4)[:2]) + +print("%.0g" % 1) # 0 precision 'g' |