adaptive_number 1.0.0 copy "adaptive_number: ^1.0.0" to clipboard
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));
}
0
likes
150
pub points
64%
popularity

Publisher

unverified uploader

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.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

fixnum

More

Packages that depend on adaptive_number