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.