I am using atof function to convert a string into a double. The return value from atof is undefined for overflow. So how can I detect if the number is too large? There are no error messages given and I cannot tell from the return value.