Atof uses set locale to parse nunbers which is wrong. One should either use modern conversion or imbue C locale when opening ifstream on ASCII loading