big_dec 0.1.6+16 copy "big_dec: ^0.1.6+16" to clipboard
big_dec: ^0.1.6+16 copied to clipboard

A library for big calculations.

BigDec #

A library for big calculations.
Hecho en Puerto Rico por Radamés J. Valentín Reyes
Co-engineered by Copilot and Gemini

Note: This library uses high-performance Uint8List storage to handle arbitrary-precision calculations (defaulting to 200+ decimal places).

Constants #

BigDec zero = BigDec.zero;
BigDec one = BigDec.one;

Constructors #

BigDec bigDec = BigDec.fromInt(42, precision: 200);
BigDec bigDecStr = BigDec.fromString("1.2345");

Arithmetic Operations #

Includes add, subtract, multiply, divide, pow, and sqrt.

Equality & Comparison #

Support for sorting and numerical comparison.

BigDec a = BigDec.fromString("1.5");
BigDec b = BigDec.fromString("1.50");

print(a.compare(b)); // 0 (Equal)
print(a == b);       // true

Component Getters #

BigDec bigDec = BigDec.fromString("123.456");
print(bigDec.integer); // 123
print(bigDec.decimal); // 456
0
likes
0
points
76
downloads

Publisher

unverified uploader

Weekly Downloads

A library for big calculations.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on big_dec