Cleanup.
Check for error from strtof()/strtod().