In some countries one use comma as decimal separator instead of a dot.
I ususally use:
%%%% Une vrai virgule pour les décimaux
\DeclareMathSymbol{@}{\mathord}{letters}{"3B}
and $3@2$ to obtain 3,2
instead of $3,2$ that gives 3, 2 <- a uggly useless space after comma
I just find this :
\mathcode`\.="8000
{\catcode`\.=\active
\gdef.{,}}
That replaces automatically a dot by a comma in math mode, but with the ungly useless space.
Is there a way to combine both technics to have an automatic sustitution with a proper comma ?
Edit Sorry !
It was obvious :
%%%% Une vrai virgule pour les décimaux
\DeclareMathSymbol{@}{\mathord}{letters}{"3B}
\mathcode`\.="8000
{\catcode`\.=\active
\gdef.{@}}
Could this code have boder effect ? Is there a better or other way to get this ?

siunitxpackage. Here you can define your decimal-seperator (Denmark uses comma here as well) and use \num{3,2} in order to express your values. Note that the package can do alot more, check out the docs. – Argo Apr 27 '14 at 08:30siunitxare set in the document preamble, and thus can be changed in one place. Alternately, you could move them to a.styfile. – ChrisS Apr 27 '14 at 08:39\gdef.{{,}}instead of\gdef.{,}to get rid of the extra space. – Henri Menke Apr 27 '14 at 09:02icomma, improving the math spacings for comma. – Apr 27 '14 at 09:03icommapackage does its best by checking what's next, but needs some help in certain cases. The best is to use\num. – egreg Apr 27 '14 at 09:41\mathcode`\.=\mathcode`\,. – Henri Menke Apr 28 '14 at 08:10\numetc takes a very long time. – daleif Apr 28 '14 at 09:42