I appreciate your feedback. I'd assume using if statements would solve that, but I haven't made it that far yet. I worked with them a bit in JavaScript when I took web programming a bit ago.
I'm not sure yet what the C# equivalent of NaN is but I'd go with using
if (variable = NaN) Console.WriteLine("Not a number.");
or something in that ballpark. That's all stuff I've barely seen in action though.
Again, I really, truly appreciate the feedback!
Not sure if that was just an example, orif you actually use that code snippet, but if you do, be sure too use "equal to" == instead of "assign operator" =.
leftHandValue == rightHandValue "is the left had value equal to the right hand value?"
leftHandValue = rightHandValue "assign the right hand value to the left hand value"
you probably know this, but just to make it clear.
C# doesn't allow assignments within comparison blocks. That code will cause a compilation error.
I did not know that.. thanks for sharing.. guess I haven't done that typo in C# yet ;) (probably thanks too the asweome intellisense of VS rather than me screwing up the syntax.. i know that happens way too often anyway xD )