adaptive_number 1.0.0 adaptive_number: ^1.0.0 copied to clipboard
Library providing an adaptive number implementation. On JS runtimes, a 64-bit signed fixed-width integer will be used and for all other platforms the default Dart int data type.
example/adaptive_number_example.dart
import 'package:adaptive_number/adaptive_number.dart';
void main() {
final number1 = Number(93432);
final number2 = Number(42435);
assert((number1 + number2) == Number(135867));
assert((number1 * Number.two) == Number(186864));
assert((number1 >> 3) == Number(11679));
}