fixDecimals method

double fixDecimals(
  1. double price
)

Returns a value with a number of decimals that matches the currency.

Implementation

double fixDecimals(final double price) =>
    fixDecimalsForNumbers(price, decimalNumbers);