Forum Discussion
Altera_Forum
Honored Contributor
21 years agoYes, NaN is short for "not a number", but I doubt it's occuring because of memory corruption. The string "NaN" is how the standard library formats this special floating point value, which is used to represent the outcome of a floating point calculation when the result is "not a number", such as when dividing by zero. This not a number result propagates: the result of any further floating point calculations involving NaN as an input is also NaN.
You've probably got a division by zero somewhere in your floating point expressions.