f
f
fixed
Search
K
Comment on page

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
Last modified 1yr ago