LaTeX How to Group Thousands in LaTeX

  • Thread starter Thread starter ronaldor9
  • Start date Start date
  • Tags Tags
    Group Latex
AI Thread Summary
LaTeX does not have a built-in feature to automatically format large numbers with thousands separators. Users can manually format numbers by inserting commands like $1\,000\,000\,000$, $1\;000\;000\;000$, or $1\:000\:000\:000$, depending on their preferred spacing style. Alternatively, scientific notation can be used, such as $10^9$. For a more automated solution, the numprint package can be utilized, allowing for easier formatting of numbers with thousands separators. Further details on the numprint package can be found on the CTAN website.
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
4
Views
2K
Replies
13
Views
3K
Replies
12
Views
3K
Replies
5
Views
3K
Replies
4
Views
2K
Replies
8
Views
3K
Replies
4
Views
4K
Back
Top