1.#INF00  
Author Message
Screwy369





PostPosted: Visual C++ Language, 1.#INF00 Top

When I divide two float values sometimes I get 1.#INF00. Does anyone know what this means, infinity I seem to get it sometimes when subtracting 2 float values, but that makes no sense. Does anyone know a fix. Thank You

Visual C++10  
 
 
Mike Danes





PostPosted: Visual C++ Language, 1.#INF00 Top

Yes, that's infinity, more precise positive infinite (or course negative infinite has a - in front). You get infinity when the result of an operation falls outside of the range supported for the specific data type. In the case of float the range is aprox. -3.4E38 .. + 3.4E38. You can try to use double which has a range of aprox. -1.7E308 .. 1.7E308.


 
 
Screwy369





PostPosted: Visual C++ Language, 1.#INF00 Top

Oh. Thanks!