power_extensions 0.2.1 copy "power_extensions: ^0.2.1" to clipboard
power_extensions: ^0.2.1 copied to clipboard

outdated

Extensions for the core dart language classes.

example/example.dart

import 'package:power_extensions/power_extensions.dart';

void main() {
  BigInt bigInt = BigInt.from(-1000000000);
  BigInt bigInt2 = BigInt.from(-1000000001);

  // BigInt
  print(bigInt.powerOfTen); // -9
  print(bigInt.isPowerOfTen); // true
  print(bigInt2.significandString); // 1000000001
  print(bigInt2.significand); // 1000000001
  print(bigInt2.significandLength); // 10
}
0
likes
0
pub points
50%
popularity

Publisher

unverified uploader

Extensions for the core dart language classes.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on power_extensions