DoubleExtension extension
- on
Methods
-
formatAmountFromDouble(
dynamic scale) → int -
Available on double, provided by the DoubleExtension extension
Converts the double into an integer representation, scaled byscale. -
parseDoubleIntoAmount(
{int decimals = 2}) → String -
Available on double, provided by the DoubleExtension extension
Formats the double into a human-readable amount withdecimalsdecimals, using a comma (,) as decimal separator and spaces () as thousands separators.