Tagged currency
9 capabilities
money.format
Render a monetary amount as text, using the currency's real minor-unit precision.
format_money in Python
money.compare
Compare two amounts of one currency, refusing to compare across currencies; min, max and clamp too.
A group of 4:
compare_money, min_money, max_money, clamp_money
money.add
Add, subtract and negate monetary amounts, refusing to mix currencies.
add_money in Python
form.money-input
Read a typed amount as minor units for its currency and locale, check min/max, and format it back.
A group of 3:
parse_money_input, format_money_input, money_input_format
money.parse
Parse "£1,234.50" or "1.234,50 €" into integer minor units, strictly: no guessing, no rounding.
parse_money in Python
money.currency-digits
How many decimal places a currency's minor unit has, from the ISO 4217 list.
currency_digits in Python
react.form.money-field React ^19 · TypeScript only
A money input with its currency symbol, locale separators and min/max, read and checked by form.money-input.
Not available in Python
money.convert
Convert an amount to another currency at a supplied exact rate, with an explicit rounding mode.
convert_money in Python