Search packages, repositories and app categories

Package detailsv0.7.0

big_decimal

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

AndroidiOSWebmacOSWindowsLinux
30-day downloads
66K
Likes
18
Pub points
160

Install package

flutter pub add big_decimal

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

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

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

big_decimal

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

View at pub.dev Test PRs Welcome Star on GitHub Fork on GitHub


Installation

Add the following to your pubspec.yaml:

dependencies:
  big_decimal: '<1.0.0'

Then run:

pub get

or

flutter pub get

Categories

Source repository

Projects using this package

No data available yet.

Rankings