4 ms·
All of the methods and libraries assume regular grouping, but India's money is grouped irregularly. While regular money is counted in groups of 10^3 (thousands,
by sudhirj 8y ago
All of the methods and libraries assume regular grouping, but India's money is grouped irregularly. While regular money is counted in groups of 10^3 (thousands, millions, billions, trillions), in India there's a 3,2,2 cycle. One lakhs = 100,000 and 1 crore is 100 lakhs, but if you had 1000 of them it would still be a thousand.
Everybody seems to get this wrong, even Google Sheets.
- marvindanig 8y agoTremendous, thanks for sharing this gem!
- aboutruby 8y agoOh I see, sorry, didn't look closely enough at the examples. Great project! Maybe this could be upstreamed in Rails?
- sudhirj 8y agoYeah, that would be ideal. Let me get the algos tightened up with feedback and testing, and I’ll try submitting them.