Skip to content

Latest commit

 

History

History
52 lines (30 loc) · 942 Bytes

numbers.rst

File metadata and controls

52 lines (30 loc) · 942 Bytes

Numbers and Currencies

babel.numbers

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

Number Formatting

format_number

format_decimal

format_compact_decimal

format_currency

format_percent

format_scientific

Number Parsing

parse_number

parse_decimal

Exceptions

NumberFormatError

Data Access

get_currency_name

get_currency_symbol

get_currency_unit_pattern

get_decimal_symbol

get_plus_sign_symbol

get_minus_sign_symbol

get_territory_currencies