Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Babel / docs / api / numbers.rst
Size: Mime:
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