File: numbers.rst

package info (click to toggle)
python-babel 2.8.0%2Bdfsg.1-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 194,932 kB
  • sloc: xml: 2,069,184; python: 12,072; makefile: 197; sh: 36
file content (50 lines) | stat: -rw-r--r-- 900 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Numbers and Currencies
======================

.. module:: babel.numbers

The number module provides functionality to format numbers for different
locales.  This includes arbitrary numbers as well as currency.

Number Formatting
-----------------

.. autofunction:: format_number

.. autofunction:: format_decimal

.. autofunction:: format_currency

.. autofunction:: format_percent

.. autofunction:: format_scientific

Number Parsing
--------------

.. autofunction:: parse_number

.. autofunction:: parse_decimal

Exceptions
----------

.. autoexception:: NumberFormatError
    :members:

Data Access
-----------

.. autofunction:: get_currency_name

.. autofunction:: get_currency_symbol

.. autofunction:: get_currency_unit_pattern

.. autofunction:: get_decimal_symbol

.. autofunction:: get_plus_sign_symbol

.. autofunction:: get_minus_sign_symbol

.. autofunction:: get_territory_currencies