`atof` isn't exactly a good fuction to use here. It doesn't do any error handling for you at all.