In most language, long numbers are split into groups of three digits, to increase readability.
In Dutch (my native language), 1000000
is usually written as 1 000 000
. In English, this would be 1,000,000
.
Now, I would like to know how to use this kind of formatting in LaTeX. I searched google, but I only found some articles that explain how to split very long numbers over multiple lines, which is not what I need.
Is there a package that does this automatically? Or a certain tag I can use for this?
Best Answer
Normally you would use
\,
for a thin space$1\,000\,000$
If you are entering that by hand. As noted in the commentssiunitx
or other packages have the ability to parse the bare number1000000
and then format it according to formatting parameters with commas or thin spaces, so it depends what you want to do (and where the numbers are generated). Whether it is a few numbers in a hand authored text or if you are typesetting thousands of numbers in table data where hand editing to add grouping separator is not really an option.