some more atoi->atof changes. since in the end it depends on how you retrieve the values from json I found it safe to up the precision in storing into json where applicable