flutter_money_formatter icon indicating copy to clipboard operation
flutter_money_formatter copied to clipboard

output.withoutFractionDigits doesn't give the expected result

Open fauzynurn opened this issue 5 years ago • 0 comments

Describe the bug FlutterMoneyFormatter(..).output.withoutFractionDigits doesn't give the expected result.

To Reproduce Steps to reproduce the behavior:

  1. Declare FlutterMoneyFormatter( amount: 0, settings: MoneyFormatterSettings( thousandSeparator: '.', fractionDigits: 0)) as singleton
  2. Execute the formatter : moneyFormatter.copyWith( amount: double.parse("3435696689") ).output.withoutFractionDigits
  3. See the result

Expected behavior The result should be 3.435.696.689

Actual behavior Formatter returned 3

fauzynurn avatar Feb 13 '20 01:02 fauzynurn