big_float 0.0.2 copy "big_float: ^0.0.2" to clipboard
big_float: ^0.0.2 copied to clipboard

BigFloat library to use basic arithmetic operations

BigFloat allows to use double numbers with desired precision after decimal point.

Features #

  • BigFloat allows to use double numbers with desired precision after decimal point.

Getting started #

flutter pub add big_float

Usage #

import 'package:big_float/big_float.dart';

void main() {
  BigFloat.precision = 16;
  var a = BigFloat.from("100000.01");
  var b = BigFloat.from("-3.4200000000000001");
  print("a+b = ${a + b}"); // 99996.5899999999999999
  print("a-b = ${a - b}"); // 100003.4300000000000001
  print("a*b = ${a * b}"); // -342000.0342000000100000
  print("b/a = ${b / a}"); // -0.3419999658000034
}
1
likes
140
pub points
0%
popularity

Publisher

verified publisherfenki.net

BigFloat library to use basic arithmetic operations

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

More

Packages that depend on big_float