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'.)