Skip to main content

fraction 6.0.1 copy "fraction: ^6.0.1" to clipboard
fraction: ^6.0.1 copied to clipboard

Create, parse and do arithmetic with fractions and mixed fractions, convert them to and from numbers and strings, and compute Egyptian fraction expansions.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add fraction

With Flutter:

 $ flutter pub add fraction

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  fraction: ^6.0.1

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:fraction/fraction.dart';
65
likes
160
points
24.3k
downloads

Documentation

API reference

Publisher

verified publisherfluttercompletereference.com

Weekly Downloads

Create, parse and do arithmetic with fractions and mixed fractions, convert them to and from numbers and strings, and compute Egyptian fraction expansions.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on fraction