Functional Weave
Code in Python

Tagged money

13 capabilities

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.parse
Parse "£1,234.50" or "1.234,50 €" into integer minor units, strictly: no guessing, no rounding.
parse_money in Python
money.sum
Total a list of monetary amounts, with an explicit currency for the empty case.
sum_money in Python