Infinite value

Hallo

Is there any predefined constant in C++ which I can use for infinite value. I have lots of mathematical calculations to do, and it would be convenient i have such a variable.

Thanks
ok... i got the answer!

I can use some constants for example DBL_MAX
better is numeric_limits<double>::infinity()

http://www.cplusplus.com/reference/std/limits/numeric_limits.html
Topic archived. No new replies allowed.