Fixing locale issues

Using sprintf('%F', …) to output non-locale aware floatvals.

It seems that the snippet code is not the same as in the package, so some changes are not mine. Mine are 108ff, 116, 118, 126 and 134.