FLUTTER ECOSYSTEM

fixed

Fixed scale decimal numbers with mathematical operations, formatting and parsing.

Latest version
6.2.0
30-day downloads
140K
Likes
12
Pub points
160

Package Overview

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

Overview

The fixed package provides support for fixed-scale decimal numbers, enabling precise mathematical operations, formatting, and parsing. It ensures consistent decimal precision by representing numbers with a fixed number of decimal places, preventing floating-point inaccuracies. Ideal for financial calculations and scenarios requiring exact decimal arithmetic, it offers reliable addition, subtraction, multiplication, and division with proper rounding. The package supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux.

Use cases
  • Financial calculations
  • Precise decimal arithmetic
  • Currency handling
  • Data serialization with fixed precision
  • Scientific computations requiring exact decimals
Key features
  • Fixed decimal scale
  • Accurate arithmetic operations
  • Built-in formatting and parsing
  • Support for large numbers
  • Cross-platform compatibility
Suitable for
  • Developers needing exact decimal math
  • Financial or accounting applications
  • Applications requiring consistent decimal representation
  • Teams avoiding floating-point errors
Considerations
  • Requires careful selection of scale factor
  • Limited to fixed precision only
  • May have performance overhead for heavy computation
  • Not suitable for arbitrary-precision needs
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add fixed

Categories

Dependencies

Dependency list 3 items

Source repository

Related projects