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

Decimal
A decimal number with a fixed point and no limit on magnitude.
Division
A whole quotient together with the remainder that did not fit into it.
Fraction
An exact ratio of two integers: what division answers when a decimal cannot.

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.