This project enable to make computations on rational numbers.
To use this library in your code :
- add a dependency in your
pubspec.yaml
:
dependencies:
rational:
- add import in your
dart
code :
import 'package:rational/rational.dart';
- Start computing using
Rational.parse('1.23')
,Rational(BigInt.from(12), BigInt.from(7))
orRational.fromInt(12, 7)
.
Apache 2.0