fatint 2.0.0

fatint #

Dart library for arbitrary sized integer values. Dart VM by default supports arbitrary sized integers but it is not the case when compiled to Javascript on the browser. This package provides a common big number interface for DartVM and browser and provides respective implementations.

Simple examples #

BigInteger i1 = bigInt(25) % bigInt(7); // => 4
BigInteger i2 = bigHex('abcd1234') * bigHex('beef'); // => 0x802297f6968c

Advantage #

  • Clean API complying to to Dart's int
  • Efficient equations using BigIntegerRef and zero

Changelog #

2.0.0 #

  • BigIntJs: JS implementation of BigInt

Breaking changes #

  • BigInt: BigInteger
  • BigIntVm: BigIntegerVm
  • BigIntRef: BigIntegerRef

1.0.0 #

  • BigInteger interface desing
  • BigIntegerVM: VM implementation of BigInteger
  • BigIntegerRef for writing efficient equations
  • EfficientBigMath for writing efficient equations

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  fatint: ^2.0.0

2. Install it

You can install packages from the command line:

with pub:

$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:fatint/fatint.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

The package version is not analyzed, because it does not support Dart 2. Until this is resolved, the package will receive a health and maintenance score of 0.

Analysis issues and suggestions

Support Dart 2 in pubspec.yaml.

The SDK constraint in pubspec.yaml doesn't allow the Dart 2.0.0 release. For information about upgrading it to be Dart 2 compatible, please see https://dart.dev/dart-2#migration.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.20.1 <2.0.0