[Tex/LaTex] Space after comma in units package

math-modespacingunits

I have a problem with using the units package. In my thesis I used it sometimes in math environment, sometimes not. Now I realized that there is an addition space after the comma in math mode. I think this is a problem of European and American writing of decimal comma and decimal point.

Can you tell me, how I can delete the space after the comma in the math environment?

enter image description here

\documentclass[12pt,a4paper]{scrbook}

\usepackage{units}

\begin{document}

$V=\unit[0,5]{V}$
\unit[0,5]{V}

\end{document}

Best Answer

If you want to use units, use the icomma package.

\documentclass{article}
\pagestyle{empty}% for cropping
\usepackage{units,icomma}
\begin{document}
$V=\unit[0,5]{V}$
\unit[0,5]{V}
\end{document}

enter image description here