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