infinity 1.0.0 copy "infinity: ^1.0.0" to clipboard
infinity: ^1.0.0 copied to clipboard

outdated

Package for really big numbers

Infinity #

CodeFactor

Big number library for dart #

Numbers range: 10^-(10^^1e308) - 10^^1e308

This library is meant for idle/clicker games where numbers go really high and precision is not that important

Inspiration and idea for this came from Patashu's break eternity.

Usage:

Going past infinity

Infinity _doubleInfinity = Infinity.fromNum(double.maxFinite);
Infinity _result = _doubleInfinity ^ _doubleInfinity;
print(_result);

prints: ee310.74362528890225

Most operators are usable, and can be mixed with normal numbers:

// Infinity is at 1.7976931348623157e+308 so 1e310 is too big for double
Infinity _reallyBigNumber = Infinity.fromString('1e310');

Infinity _result = _reallyBigNumber / 2;
print(_result);

prints: 5.0e309