currency_kit 0.0.1 copy "currency_kit: ^0.0.1" to clipboard
currency_kit: ^0.0.1 copied to clipboard

Money, currency codes and exchange rates as value types — with display-only conversion, so switching the currency a user reads never changes the amount you store.

0.0.1 #

  • Initial release: CurrencyCode, Money, ExchangeRate, MoneyFormatter, MoneyParser and CurrencyRegistry, built around display-only conversion.
  • Rounding defaults to half-up on the decimal a user typed (RoundingMode.halfUpDecimal), with halfUpBinary available for parity with systems that round the stored double.
0
likes
150
points
35
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Money, currency codes and exchange rates as value types — with display-only conversion, so switching the currency a user reads never changes the amount you store.

Repository (GitHub)
View/report issues

Topics

#money #currency #exchange-rate #formatting #iso4217

License

MIT (license)

Dependencies

collection, intl, meta

More

Packages that depend on currency_kit