rational 0.0.5 copy "rational: ^0.0.5" to clipboard
rational: ^0.0.5 copied to clipboard

outdatedDart 1 only

A simple package to deal with rational numbers

Dart Rational #

This project enable to make computations on rational numbers.

Usage #

To use this library in your code :

  • add a dependency in your pubspec.yaml :
dependencies:
  rational: '<1.0.0'
  • add import in your dart code :
import 'package:rational/rational.dart';
  • Start computing using Rational.parse('1.23') or new Rational(12, 7).

Limitation #

WARNING : If you are using this package through dart2js, results may not be good. This is because dart2js does not implement yet integers with arbitrary precision. Once issue 1533 fixed, you should be able to use it in javascript.

License #

Apache 2.0

13
likes
0
pub points
93%
popularity

Publisher

unverified uploader

A simple package to deal with rational numbers

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

meta

More

Packages that depend on rational