[Tex/LaTex] Using space instead of comma for large numbers

formattingsiunitx

Is there a package I could use to insert a space instead of a comma for large numbers?

For example,

12 345.67

instead of

12,345.67

If needed, I am using the extbook environment. All of my numbers are in math mode.

Edit: Is there a way I can do this formatting without having to type in num (from siunitx) for every single number?

Best Answer

Numbers can be formatted with package siunitx:

\documentclass{article}
\usepackage{siunitx}

\begin{document}
\num{12345.67}  
\end{document}  

Result

The space can be configured via option group-separator. Its default is a small space (\,).