3

This question already has an answer here:

This is a follow-up question to Handling numbers and calculations.

The numbers printed by \num[group-separator={,},group-minimum-digits=4]{\the\numexpr(5000)\relax} will produce comma separated numbers in groups of three digits each.

In India, however, we group numbers differently. Ones, Tens and Hundreds is the only group of three digits. All other groups are of two digits each.

The following example illustrates the difference:

  • 123,456 gets written as 1,23,456
  • 1,234,567 gets written as 12,34,567
  • 12,345,678 gets written as 1,23,45,678
  • 123,456,789 gets written as 12,34,56,789

Is there any way to get latex to format the numbers Indian way?

marked as duplicate by egreg, David Z, Jake, Andrew Swann, Martin Schröder Nov 28 '14 at 13:16

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    I think this has already been asked: tex.stackexchange.com/questions/144976/… – egreg Nov 28 '14 at 11:55
  • 2
    There's an open feature request for this but it certainly will not happen before v3. Moreover, I'm still very wary of this as the entire 'three digit grouping' business is an international standard. – Joseph Wright Nov 28 '14 at 11:58