I have been trying to convert the number into my own currency number style in Flutter. For example, I have a number of these.
99,99,99,99,99,999
I need to have them converted into the words like
Ninety nine Kharba Ninety nine Arba Ninety nine crore Ninety nine Lakhs Ninety nine thousand Nine hundred and Ninety nine.
I tried using the number_to_character package but I got the words in English Currency format.
I tried as follows:
var converter = NumberToCharacterConverter('en');
converter.convertInt(int.parse(amountController.text));
words=words[0]+words.substring(1);
I got nine trillion nine hundred and ninety nine billion nine hundred and ninety nine million nine hundred and ninety nine thousand nine hundred and ninety nine
Also, I tried with Locale NumberFormat from intl but I got INR10LCr for the same amount I mentioned above it also did not have the solution I expected.
How can I convert the number into the words mentioned above in Flutter?