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.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 6 of 6
Thread: How to detect overflow?Threaded View
|
Click Here to Expand Forum to Full Width |