fadhly-permata / flutter_money_formatter

"FlutterMoneyFormatter" is a Flutter extension to formatting various types of currencies according to the characteristics you like, without having to be tied to any localization.
https://pub.dartlang.org/packages/flutter_money_formatter
Other
85 stars 106 forks source link

output.withoutFractionDigits doesn't give the expected result #27

Open fauzynurn opened 4 years ago

fauzynurn commented 4 years ago

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