Debian Codegraph @

docs/api/numbers.rst

raw
1 Numbers and Currencies
2 ======================
3
4 .. module:: babel.numbers
5
6 The number module provides functionality to format numbers for different
7 locales. This includes arbitrary numbers as well as currency.
8
9 Number Formatting
10 -----------------
11
12 .. autofunction:: format_number
13
14 .. autofunction:: format_decimal
15
16 .. autofunction:: format_compact_decimal
17
18 .. autofunction:: format_currency
19
20 .. autofunction:: format_compact_currency
21
22 .. autofunction:: format_percent
23
24 .. autofunction:: format_scientific
25
26 Number Parsing
27 --------------
28
29 .. autofunction:: parse_number
30
31 .. autofunction:: parse_decimal
32
33 Exceptions
34 ----------
35
36 .. autoexception:: NumberFormatError
37 :members:
38
39 Data Access
40 -----------
41
42 .. autofunction:: get_currency_name
43
44 .. autofunction:: get_currency_symbol
45
46 .. autofunction:: get_currency_unit_pattern
47
48 .. autofunction:: get_decimal_symbol
49
50 .. autofunction:: get_plus_sign_symbol
51
52 .. autofunction:: get_minus_sign_symbol
53
54 .. autofunction:: get_territory_currencies