Fix for decimal values

Value 10.4 is read as 10,4 depending on regional settings. On some
machines the old code worked, but on some other the provided fix is
needed. This solution might not be the optimal solution for the problem.