Overview
Money2 is a high-precision Dart library designed for accurate handling of monetary values across multiple currencies. It supports fixed-decimal arithmetic, currency parsing and formatting, and seamless conversion between currencies. Ideal for financial applications requiring exact calculations without floating-point errors, it enables operations like parsing '$2010.00', multiplying by 10, and formatting as '$US20,100'. The library ensures reliability in financial computations with robust support across all major platforms.
Use cases
- Financial applications
- Currency conversion
- Invoice and payment processing
- Budgeting tools
- E-commerce systems
- Accounting software
Key features
- High-precision decimal arithmetic
- Multi-currency support
- Currency parsing and formatting
- Built-in currency conversion
- Platform-agnostic (all major platforms)
- Safe fixed-decimal math
Suitable for
- Developers building finance apps
- Apps needing exact monetary calculations
- Cross-platform financial tools
- Systems requiring international currency handling
Considerations
- Requires explicit currency definitions
- Limited to predefined currency codes
- Depends on external exchange rate sources for conversions
- Not suitable for non-monetary decimal data