Is there a way to tell if a function simply went out of range, or if the answer is actually infinity?
Code:double i = 100. / 0.; //inf double oor = pow(9., 100.); //out of range
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 9 of 9
Thread: Infinity or out of range?Threaded View
|
Click Here to Expand Forum to Full Width |