fixed
  • Overview
  • Constructors
  • Scale
  • Parsing
  • Formatting
  • Performing math
  • Comparison
  • Storing
Powered by GitBook
On this page

Was this helpful?

Parsing

The fixed package allows you to parse strings into a Fixed instance:

Fixed.parse('1.234', scale: 3);  // == 1.234

If you don't pass in the scale then Fixed will determine the scale from the no. of decimal places in the string:

Fixed.parse('1.2345'); // == 1.2345, scale = 4
PreviousScaleNextFormatting

Last updated 2 years ago

Was this helpful?