Skip to content

big_float libary for Dart to use basic arithmetic operations (a wrapper for BigInt but with a desired decimal precision)

License

Notifications You must be signed in to change notification settings

gubnota/big_float

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
}

About

big_float libary for Dart to use basic arithmetic operations (a wrapper for BigInt but with a desired decimal precision)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages