Could it be that the atof function pays attention to the system locale, specifically, to the decimal separator? Demosthenes, if you open language/region in the control panel, what is the decimal separator set to?