We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Instead of
print('123456 -> ${inWords.format(123456)}'); // 123456 -> 1 lakh 23 thousand 4 hundred 56
Can we have
print('123456 -> ${inWords.format(123456)}'); // 123456 -> one lakh twenty three thousand four hundred fifty six
I didn't find a way in this library to do this.
I ended up using this package with intl package like this
String amountToNepaliWords(double value) { // Format the number to Nepali words NepaliNumberFormat nepaliNumberFormat = NepaliNumberFormat( inWords: true, decimalDigits: 2, isMonetory: true, includeDecimalIfZero: false, ); String formattedAmount = nepaliNumberFormat.format(value); // Convert formatted number to letters String amountInLetters = formattedAmount.replaceAllMapped( RegExp(r'\d+'), (match) => NumberToWordsEnglish.convert(int.parse(match.group(0)!)), ); return amountInLetters; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Instead of
Can we have
I didn't find a way in this library to do this.
I ended up using this package with intl package like this
The text was updated successfully, but these errors were encountered: