# decimal (Dart)

> Arbitrary-precision decimal numbers for Dart

Source: https://talira.ai/catalog/decimal-dart-s1ebgcvr
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / math / decimal arithmetic](https://talira.ai/categories/libraries/math/decimal-arithmetic), [languages / dart](https://talira.ai/categories/languages/dart)
- Licence: Apache-2.0[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Alexandre Ardhuin](https://talira.ai/orgs/alexandre-ardhuin.md)

decimal is a Dart package for doing arithmetic on decimal numbers without the rounding errors of doubles: 0.2 + 0.1 gives 0.3, not 0.30000000000000004. Values are parsed from strings with Decimal.parse, and a companion library formats them with the intl package's number formats through DecimalFormatter. It works in Dart and Flutter apps.

## Links

- GitHub: https://github.com/a14n/dart-decimal

## Problems it solves

- add money amounts in Dart without floating-point errors
- 0.1 + 0.2 isn't 0.3 in my Flutter app
- store and format exact decimal prices in Dart

## Features

- exact decimal arithmetic without floating-point rounding
- Decimal.parse from strings
- formatting with intl number formats via DecimalFormatter
- works in Dart and Flutter

## Limitations

- Formatting with intl doesn't work with maximumFractionDigits above 15 on the web or 18 on other platforms (README, 30 May 2024).[^1]

## Trust

Overall: 0.41 out of 1.
Signals: maintenance 0.62, adoption 0.45, momentum 0.10, community 0.52, backing 0.30, extensibility 0.00.

- last commit 7 days ago
- 3 commits in the last 90 days
- 186 GitHub stars
- 19 contributors
- backed by Alexandre Ardhuin

## Sources

[^1]: https://github.com/a14n/dart-decimal/blob/master/README.md (checked 28 Nov 2026)
[^2]: https://github.com/a14n/dart-decimal/blob/master/LICENSE (checked 28 Nov 2026)
