Overview
Last updated
Last updated
The Fixed package allows you to store and perform math on decimal numbers with a fixed scale (fixed no. of decimal places).
All amounts are stored as BigInts to allow precision math to be performed.
Help support Fixed by supporting OnePub, the private dart repository.
OnePub allows you to privately share Dart packages across your Team and with your customers.
Try it for free and publish your first private package in seconds.
The features of Fixed are:
Fixed uses a selectable fixed scale (no. of decimal places)
Fixed provides a builtin formatter and parser Fixed.format(pattern)
Fixed includes a convenience method Fixed.formatIntl(locale)
which formats the number with the provided locale or the default locale if not provided.
You can create a Fixed instance from a number sources
Publish a private package in five commands:
dart pub global activate onepub
onepub login
cd <my package>
onepub pub private
dart pub publish