-
Notifications
You must be signed in to change notification settings - Fork 75
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
Decimal inserted despite mantissaLength: 0 #106
Comments
Hi Everyone, any solution for this? I have the same issue :( |
Hi! Now my check was like this:
And the display is:
|
When I run My Thoughts on what I'm screwing up? |
Have you tried it again after you did it? I'm sure there was a bug you described but not anymore |
Yes. Was trying a few times not sure what I'm missing. I'm happy to continue troubleshooting this issue if you have other ideas, but also fine if closed as I think I'll be switching to the Intl package. |
I must have misunderstood the question when I first read it. You said you only have period at the end. But I thought you also have a zero after it. I'll check it again. I think I know what may cause it |
You're right. The problem was in this function
It paid no mind to the mantissa length. Fixed in 2.9.7 |
Ah, thank you, thank you! |
Trying to display
400000
as$400,000
.However, the following,
print(400000.toCurrencyString(mantissaLength: 0, leadingSymbol: MoneySymbols.DOLLAR_SIGN, trailingSymbol: ''));
displays as
$400,000.
, displaying a period after the value.In a prior release, this wasn't happening (I just updated from 2.0.2)
How do I avoid the
.
from being displayed?Or is this the expected behavior?
Flutter (Channel stable, 3.3.8)
Thank you!
The text was updated successfully, but these errors were encountered: