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

failing to convert correctly for this number:-> "1000000050" #1

Open
SaptarshiMisra opened this issue Sep 25, 2020 · 2 comments
Open

Comments

@SaptarshiMisra
Copy link

The output with the above number is becoming "one-hundred-fifty".

Could you please see if this can be fixed

@matiullah-karimi
Copy link
Owner

@SaptarshiMisra It works fine. Could you please show your code.
Screen Shot 2020-09-26 at 9 12 39 AM

@SaptarshiMisra
Copy link
Author

Hi, Thank you for your response. I was using EN-IN locale. Could you please confirm that it works with EN-IN.

My function:
void _convertNumberToWords(String value) {
enterPrincipalAmount = NumberToWord().convert('en-in',int.parse(value));
}

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

2 participants