FLUTTER ECOSYSTEM

big_decimal

A bugless implementation of BigDecimal in Dart based on Java's BigDecimal

Latest version
0.7.0
30-day downloads
31.3K
Likes
18
Pub points
160

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

A reliable BigDecimal implementation in Dart inspired by Java's BigDecimal, designed to handle precise decimal arithmetic without floating-point errors. It supports arbitrary-precision calculations, ensuring accuracy for financial and scientific applications. The package is rigorously tested to avoid common bugs found in other implementations, making it ideal for use cases requiring exact decimal representation and rounding control. It works across all major platforms including mobile, web, and desktop.

Use cases
  • Financial calculations
  • Scientific computations
  • Precise monetary operations
  • Data processing with exact decimals
  • Currency conversions
Key features
  • Arbitrary precision arithmetic
  • Accurate rounding modes
  • No floating-point errors
  • Cross-platform compatibility
  • Immutable design for safety
Suitable for
  • Applications needing exact decimal math
  • Developers migrating from Java
  • Systems requiring high numerical accuracy
  • Backend services handling money
  • Educational tools for math operations
Considerations
  • Higher memory usage than double
  • Slower performance than native types
  • Requires careful handling of scale and rounding
  • Not suitable for high-speed numerical simulations
  • Learning curve for new users unfamiliar with BigDecimal concepts
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add big_decimal

Categories

Source repository

Related projects

No data available yet.