I have a complete design of my developing software in C++. I really do not want to change the structure.
However, I sometimes get erroneous outputs to store in integer variable. Output is not any number, output is NaN. But I do not want to add any other variable to check whether my integer variable is erroneous or not.
Is there any way to store a thing such as NaN in an integer variable?