How to Group Thousands in LaTeX

  • Context: LaTeX 
  • Thread starter Thread starter ronaldor9
  • Start date Start date
  • Tags Tags
    Group Latex
Click For Summary

Discussion Overview

The discussion revolves around formatting large numbers in LaTeX to group by thousands, specifically how to display numbers like 1 000 000 000 instead of 1000000000. The scope includes technical explanations and proposed solutions related to LaTeX typesetting.

Discussion Character

  • Technical explanation, Debate/contested

Main Points Raised

  • One participant inquires about a method to automatically format large numbers in LaTeX.
  • Another participant suggests that LaTeX does not have a built-in feature for this and provides manual formatting options using different spacing commands.
  • A third participant expresses a desire for a simpler solution while acknowledging the provided manual methods.
  • A later reply introduces the numprint package as a potential solution for formatting large numbers, directing to an external resource for more information.

Areas of Agreement / Disagreement

Participants do not reach a consensus on a built-in method for grouping thousands in LaTeX, with multiple views on manual formatting and the use of packages remaining present.

Contextual Notes

Limitations include the lack of a built-in feature in LaTeX for automatic number formatting and the dependency on manual input or external packages for achieving the desired formatting.

ronaldor9
Messages
91
Reaction score
1
How can I tell LaTex to group by thousands such as a large number like this: 1 000 000 000 instead of 1000000000

Thanks
 
Physics news on Phys.org
I don't think you can tell it that, because as far as LaTeX is concerned there is nothing special about numbers. You can do it manually, just type $1\,000\,000\,000$ or $1\;000\;000\;000$ or $1\:000\:000\:000$, depending on your preference. Or use scientific notation ($10^9$), of course :-p

Examples:
  • $1\,000\,000\,000$
    1\,000\,000\,000
  • $1\;000\;000\;000$
    1\;000\;000\;000
  • $1\:000\:000\:000$
    1\:000\:000\:000
  • $10^9$
    10^9
 
Last edited:
Thanks, yea I was hoping there was a simpler way. Thanks though!
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 13 ·
Replies
13
Views
4K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 6 ·
Replies
6
Views
4K