FLUTTER ECOSYSTEM

fraction

A package that helps you work with fractions and mixed fractions.

fraction cover
Latest version
5.0.5
30-day downloads
23.1K
Likes
65
Pub points
160

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

The fraction package provides tools for working with fractions and mixed fractions in Dart and Flutter applications. It enables precise arithmetic operations like addition, subtraction, multiplication, and division on fractions, along with support for converting between fractions and decimals. The package handles simplification automatically and supports mixed fractions for intuitive input and output. Ideal for educational apps, math tools, or any application requiring exact fractional calculations without floating-point inaccuracies.

Use cases
  • Math education apps
  • Fraction-based calculators
  • Recipe scaling tools
  • Scientific computation
  • Data precision in financial apps
Key features
  • Support for fractions and mixed fractions
  • Automatic simplification of results
  • Arithmetic operations (add, subtract, multiply, divide)
  • Conversion between fractions and decimals
  • Immutable fraction objects
Suitable for
  • Developers building math-focused apps
  • Educational software creators
  • Apps requiring exact fractional arithmetic
Considerations
  • Not optimized for very large numbers
  • Limited to basic arithmetic operations
  • No built-in formatting for display purposes
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add fraction

Categories

Source repository

Related projects