summaryrefslogtreecommitdiff
path: root/docs/numbers.rst
diff options
context:
space:
mode:
authorAarni Koskela <akx@iki.fi>2022-01-25 17:21:54 +0200
committerGitHub <noreply@github.com>2022-01-25 17:21:54 +0200
commit5279170b51de43a48d3a2505eb12399c81112d8a (patch)
tree13898470788dc7bc5a7cb424ba9cdc4596d6e0d8 /docs/numbers.rst
parent227d1ec9e44bb95fb77fe5611815cc13be27e164 (diff)
parentdc8d3838840ebfbd027c05df4cea860fa134ffd7 (diff)
downloadbabel-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.rst5
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
==============