The words for the orders of magnitude don't group by thousand like in English (*thousand, million, billion, and so on) but by thousand (hazaar), hundred thousand (lakh), ten million (crore), and I don't know what next.
So the comma separation reflects the words, as in English.
> 38,625
38 hazaar ... Vs. 38 thousand ...
> 13,38,625 vs. 1,338,625
13 lakh ... Vs. 1.3 million ...
> 1,00,13,38,625 vs. 1,001,338,625
100 crore Vs. 1.0 billion
This would no doubt be an entry in a hypothetical 'falsehoods programmers believe about numbers'! I.e. use things like Intl.NumberFormat in the browser, rather than home-grown 'group 3 digits and insert a comma then join again'.
(* yes, I'm going to conveniently ignore 'hundred' and its occasional/domain use like 'twelve hundred'.)
> The words for the orders of magnitude don't group by thousand like in English
It's not only in English, as far as I know it's almost everywhere else, the entire Western world plus its former colonies and I think even places like China.
Yes, Indian Numeral System is different. Thousand is Thousand. Hundred Thousand is 1 Lakh. 1 Million is 10 Lakhs. 10 Million is 1 Crore. 1 Billion is 100 Crores.
So the comma separation reflects the words, as in English.
> 38,625
38 hazaar ... Vs. 38 thousand ...
> 13,38,625 vs. 1,338,625
13 lakh ... Vs. 1.3 million ...
> 1,00,13,38,625 vs. 1,001,338,625
100 crore Vs. 1.0 billion
This would no doubt be an entry in a hypothetical 'falsehoods programmers believe about numbers'! I.e. use things like Intl.NumberFormat in the browser, rather than home-grown 'group 3 digits and insert a comma then join again'.
(* yes, I'm going to conveniently ignore 'hundred' and its occasional/domain use like 'twelve hundred'.)