How do I initialize number with NaN in Borland C++?
duplicate: Using NaN in C++?
You can look at std::numeric_limits<double>::quiet_NaN(). Include <limits>.
std::numeric_limits<double>::quiet_NaN()
<limits>