Skip to content

Commit

Permalink
Improve number formatting example
Browse files Browse the repository at this point in the history
Fixes #575
  • Loading branch information
akx committed Jan 25, 2022
1 parent 43193a2 commit 864159f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/numbers.rst
Expand Up @@ -18,13 +18,16 @@ Examples:

.. code-block:: pycon
# Numbers with decimal places
>>> format_decimal(1.2345, locale='en_US')
u'1.234'
>>> format_decimal(1.2345, locale='sv_SE')
u'1,234'
# Integers with thousand grouping
>>> format_decimal(12345, locale='de_DE')
u'12.345'
>>> format_decimal(12345678, locale='de_DE')
u'12.345.678'
Pattern Syntax
==============
Expand Down

0 comments on commit 864159f

Please sign in to comment.