Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fauzynurn opened this issue Feb 13, 2020 · 0 comments
Open

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

fauzynurn opened this issue Feb 13, 2020 · 0 comments

Comments

@fauzynurn
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant