NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #2093 most downloaded on pub.dev
A package that helps you work with fractions and mixed fractions.
Last release 1 years ago
07 May 2025
Release timing varies
gaps range from 1 weeks to 12 months
Nearly every release is documented
notes for 28 of 28 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
31 releases · first in 2020
One column per quarter.
Updated Dart SDK constraints to ^3.7.2
^3.7.2Updated Dart SDK constraints to ^3.6.0
^3.6.0Updated Dart SDK constraints to ^3.4.0
^3.4.0chore: Update dependencies by @albertodev01 in #26
chore: Dependencies update by @albertodev01 in #25
Added coverage support by @albertodev01 in #3
Full Changelog: https://github.com/albertodev01/fraction/commits/5.0.0
Rational, Fraction and MixedFraction types have the base modifier.^3.0.0Increased pubspec description length to raise the score at pub.dev
pub.devUpdated Dart SDK constraints to ">=2.18.0 <3.0.0"
">=2.18.0 <3.0.0"Added the MixedFraction.fromDouble method
MixedFraction.fromDouble method- Added more linter rules - Dependencies updates
Updated Dart SDK constraints to ">=2.17.0 <3.0.0"
">=2.17.0 <3.0.0"Fixed a typo in the CHANGELOG.md file
BREAKING: the EgyptianFraction class is not public anymore, it's been hidden in the internals of the package. The reason is that an egyptian fraction
EgyptianFraction class is not public anymore, it's been hidden in the internals of the package. The reason is that an egyptian fraction is not a kind of fraction but it's a way of representing a fraction: the EgyptianFraction type may be misleading (and it should have been called EgyptianFractionConverter since the beginning). The migration is very easy:// Old code
EgyptianFraction(
fraction: Fraction(5, 8),
).compute(); // [1/2 + 1/8]
EgyptianFraction.fromMixedFraction(
mixedFraction: MixedFraction(2, 4, 5),
).compute(); // [1 + 1 + 1/2 + 1/4 + 1/20]
// New code
Fraction(5, 8).toEgyptianFraction(); // [1/2 + 1/8]
MixedFraction(2, 4, 5).toEgyptianFraction(); // [1 + 1 + 1/2 + 1/4 + 1/20]
Rational abstract supertype of Fraction and MixedFraction, which also adds the tryParse method:// If the string is valid, it either returns a 'Fraction' or a 'MixedFraction'
Rational.tryParse('2/5'); // 2/5;
Rational.tryParse('2 4/5'); // 2 4/5;
// If the string is invalid, it returns 'null'
Rational.tryParse('/5'); // null
Rational.tryParse(''); // null
BREAKING: removed EgyptianFraction.clearCache() and EgyptianFraction.cachingEnabled. Caching is now always enabled by default and the cache cannot be
EgyptianFraction.clearCache() and EgyptianFraction.cachingEnabled. Caching is now always enabled by default and the cache cannot be purged.>=2.14.0 <3.0.0)example/ folderAdded some more rules in analysis_options.yaml
analysis_options.yamlAdded a small Dart CLI application in the example/ folder
example/ folderMixedFraction typeAdded some more dart_code_metrics rules and minor README fixes
dart_code_metrics rules and minor README fixesAdded stricter linter rules with lints and dart_code_metrics packages
lints and dart_code_metrics packagesFixed formatting to increase pub score
Added the toEgyptianFraction() method on Fraction and MixedFraction
toEgyptianFraction() method on Fraction and MixedFractionEgyptianFraction.fromMixedFraction()BREAKING: the extension method for Fraction on String now has bool get isFraction instead of bool isFraction()
Fraction on String now has bool get isFraction instead of bool isFraction()MixedFraction on String now has bool get isMixedFraction instead of bool isMixedFraction()percentage property on Fraction and MixedFraction to express the percentage represented by the fractionprimeFactorization() method on Fraction to find which prime numbers multiply together to make the numerator and denominatorImproved static analysis with a more elaborated analysis_options.yaml file
analysis_options.yaml fileMigration to stable null safety
Minor updates in the README.md file.
isProper and isImproper getters on FractionMinor updates in the README.md file.
BREAKING CHANGE: Now Fraction and MixedFraction are immutable.
Fraction.MixedFraction.MixedFraction.Fraction and MixedFraction are immutable.MixedFraction accepts any kind of fractional value (even improper factions, which will be internally converted).- Fixed some health suggestions.
Fixes on documentation and examples.
toString() on a fraction whose denominator is 1, only the numerator is printed.
For example, Fraction(3, 1).toString() returns 3 and not 3/1.Added support for operator [](int index).
operator [](int index).Added a few examples in the repository.
Fraction and MixedFraction have been released.
Fraction and MixedFraction have been released.num and string.Your coding agent can read these notes before it upgrades. Set up the MCP server →