Skip to content

Commit 381557d

Browse files
committed
Improve number formatting example
Fixes #575
1 parent 4f036e0 commit 381557d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

docs/numbers.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,16 @@ Examples:
1818

1919
.. code-block:: pycon
2020
21+
# Numbers with decimal places
2122
>>> format_decimal(1.2345, locale='en_US')
2223
u'1.234'
2324
>>> format_decimal(1.2345, locale='sv_SE')
2425
u'1,234'
26+
# Integers with thousand grouping
2527
>>> format_decimal(12345, locale='de_DE')
2628
u'12.345'
27-
29+
>>> format_decimal(12345678, locale='de_DE')
30+
u'12.345.678'
2831
2932
Pattern Syntax
3033
==============

0 commit comments

Comments
 (0)