big_double 1.0.2 copy "big_double: ^1.0.2" to clipboard
big_double: ^1.0.2 copied to clipboard

High performing BigInt & double replacement that can hold more than 1^308 and up to 10^^308

example/main.dart

import 'package:big_double/big_double.dart';

void main() {
  BigDouble sum = (1e30).big + (1e30).big;
  print(sum.toDouble());
  print(sum);
  print("Mantissa = ${sum.mantissa}\nExponent = ${sum.exponent}");
  BigDouble product = BigDouble.fromValue(996) * BigDouble.fromValue(996);
  print(product.toDouble().round());
}
1
likes
150
points
29
downloads

Publisher

verified publisherexoad.net

Weekly Downloads

High performing BigInt & double replacement that can hold more than 1^308 and up to 10^^308

Repository (GitHub)

Documentation

API reference

License

Apache-2.0 (license)

More

Packages that depend on big_double