fixing locale issue with decimal delimiter for floats