max double, a la INT_MAX
I've been working on some projects involving prime-generation/factoring, during which I've been trying to keep close track of the numeric limits on the program. But I'm stumped on one part: is there a way to find the maximum value of the floating point types?
It appears that limits.h only has info on integer types, and I wasn't having any luck with google.
Use <limits> instead
On the topic of std::numeric_limits, has anyone ever tried using min()/max() together with including windows.h? There are some stupid min/max macros there that has to be undefined for numeric_limits to work...
Or you #define NOMINMAX before including windows.h.