In relation to this thread - http://arduino.cc/forum/index.php/topic,89713.0.html which was recently solved by figuring out that a variable had become Not a Number.
I have a question about how that gets handled by the processor.
Let's say I have an unsigned char. It can have values from 0 (b00000000) to 255 (b11111111) and that covers every possible permutation of 8 bits in a byte. So what happens when it becomes NaN. Like if I try to divide by zero. What would then be actually stored at that memory location and how would the processor identify that as NaN at a later time when it comes to retrieve that variable? Since I'm using all of the bits to represent numbers, where does the information that it is not a number come into play?