Code

setlocale(LC_ALL, "") should be setlocale(LC_NUMERIC, "C") to properly parse the...