NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #1042 most downloaded on pub.dev
Fixed scale decimal numbers with mathematical operations, formatting and parsing.
Last release 1 months ago
16 Aug 2026
Ships unpredictably
gaps range from 8 days to 10 months
Nearly every release is documented
notes for 33 of 35 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
40 releases · first in 2021
One column per quarter.
- upgraded to intl ^0.20.3
reduced the sizes of the onepub logo.
Fix for https://github.com/onepub-dev/fixed/issues/24 pow returns incorrect results. thanks to @zamahaka for raising hte issue.
BREAKING: all references to 'scale' (mainly method parameters) have been changed to 'decimalDigits'. This is to bring the package in line with the Mon
BREAKING: all references to 'scale' (mainly method parameters) have been changed to 'decimalDigits'. This is to bring the package in line with the Money2 package which Fixed was built to support.
Added: 'decimalDigits' to the multiply method so you can now directly control the scale of the passed multiplier.
added an optional [scale] to the [multiply] method.
Added method decimalPartAsString which returns the decimal component with leading zeros if required.
removed max_scale as I don't think it is actually necessary and it was causing rounding errors when doing large multiplications. The only place a limi
Corrected a mistake in the doco for Fixed.parse. It doesn't default to 2 but the rather the number of decimals present in the passed in string.
change the Fixed operator == method to be conformant with the dart standard to not throw regardless of the left hand side. Thanks to @yehorh for repor
Fixed issue: #19 which cased by a rounding issue in the rescale logic. Thanks to @vi-k for reporting the issue.
changed copyWith from a static to a member method in keeping with dart conventions. deprecated the old static method. Will be removed in 6.0
- upgraded to decimal 3.x
Fixed a bug where we didn't allow a decimal number to start with dot - e.g. 0.1 == .1
BREAKING: Changed Fixed.one, Fixed.zero, Fixed.two and Fixed.ten to be 'decimalDigits:0' when previously there were scale 16. This means the display a
BREAKING: Changed Fixed.one, Fixed.zero, Fixed.two and Fixed.ten to be 'decimalDigits:0' when previously there were scale 16. This means the display as an integer value (more in line with what is expected) and when combined with other values that have a larger scale then the other value will dictate the scale rather then forcing scale 16 on the results.
Fixed a bug in tryParse where it would throw rather than returning null on some input (such as an empty string).
renamed IllegalPatternException to IllegalFitxedPatternException as the original name was colliding with an exception on Money2 with the same name. Us
moved all exceptions into exceptions.dart. Exported exceptions.dart so users can explicitly catch each of these exceptions. Change the exception hiera
updated the doco for fixed constancts (one, zero, two, ten) to reflect that they actually have a scale of 16 not 2.
- upgraded to intl 0.19
- fixed link to onepub image.
moved the min sdk version to dart 3.x
fixes #13 toInt was not returning the expected value.
- updated to dart 3.x
Updated version of intl and meta to latest.
Fixed: #11 - zero divide when calling Fixed.toInt when Fixed is zero. Thanks to dmitry-kotorov for reporting this bug. Z
Fixed for #10 as reported b7 @oakstair. Trunction of decimals rather than the required rounding when the calling tryParse with a string with scale lar
upgrade to decimal-2.3.0 to resolve breaking change between decimal 2.2 and 2.3 Thanks to Alexandre Ardhuin @a14n for the patch.
Fixed rouding problem when multiplying -ve numbers.
BREAKING: change the default toString format to include a leading zero for numbers less than 1. This is inline with user expectations but a change for
made takeMinorDigits private as its not part of the public api.
Nothing published for this version
updated the home/repository links to onepub-dev.
Fixed #7 We now include platform specific defs of max and min ints as the web version of dart ints are only 53 bits.
reduce the dart minimum version from 2.14 to 2.12
Fixed a bug in Fixed.copyWith where if the scale wasn't passed the existing scale wasn't retained.
spelling grammar and formatting.
Nothing published for this version
Renamed Fixed.from to Fixed.fromNum for consistency with other ctor names.
changes the underlying implementation to use the decimal package Thanks to Alexandre Ardhuin for the significant contribution that made this possible
Improved the documentation.
Improved the documentation.
First release of Fixed.
First release of Fixed.
Your coding agent can read these notes before it upgrades. Set up the MCP server →