decimal library
The BigInt family alone: Decimal, its fraction, its division, its exception.
The same Decimal the umbrella denary.dart exports, without
ShortDecimal and without the bridge between the two. Import this one where
the magnitudes are not known in advance and the int64 family would only be
dead weight.
import 'package:denary/decimal.dart';
final price = Decimal.parse('19.99');
print(price * Decimal(3)); // 59.97
Classes
Exceptions / Errors
- DecimalDigitsOutOfRangeError
- A number of digits, or a power of ten, past what this package will build.
- DecimalDivideException
- Thrown by Decimal.operator / when the result has no finite decimal form.
- ScaleOutOfRangeError
- A scale that would leave int64.