Compared to Alternatives
amounts does not replace every other library. It draws a different boundary.
Compared to money
money is stronger when you want a mature fiat-money ecosystem with currency metadata and exchange helpers.
amounts is stronger when you want:
- arbitrary-precision atomic storage as the primary model
- crypto-scale decimals
- one abstraction spanning money, tokens, commodities, inventory, and points
Compared to ruby-units or measured
Those libraries are stronger for physical dimensions and unit systems.
amounts is stronger when the core question is “how much of this fungible thing do I have?” rather than “how do physical units convert and compose?”