diff options
author | Aarni Koskela <akx@iki.fi> | 2022-01-25 17:21:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-25 17:21:54 +0200 |
commit | 5279170b51de43a48d3a2505eb12399c81112d8a (patch) | |
tree | 13898470788dc7bc5a7cb424ba9cdc4596d6e0d8 /docs/numbers.rst | |
parent | 227d1ec9e44bb95fb77fe5611815cc13be27e164 (diff) | |
parent | dc8d3838840ebfbd027c05df4cea860fa134ffd7 (diff) | |
download | babel-5279170b51de43a48d3a2505eb12399c81112d8a.tar.gz |
Merge pull request #830 from python-babel/docs-fixes
Documentation fixes
Diffstat (limited to 'docs/numbers.rst')
-rw-r--r-- | docs/numbers.rst | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/numbers.rst b/docs/numbers.rst index 058d79e..ed3b60f 100644 --- a/docs/numbers.rst +++ b/docs/numbers.rst @@ -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 ============== |