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
|
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
Data Access
-----------
.. autofunction:: get_currency_name
.. autofunction:: get_currency_symbol
.. autofunction:: get_decimal_symbol
.. autofunction:: get_plus_sign_symbol
.. autofunction:: get_minus_sign_symbol
.. autofunction:: get_territory_currencies
|