\pgfmathprintnumber solves the problem.
\pgfmathprintnumber
I really don't know why this is so complicated.