Testare una somma non ha molto senso: avrebbe piu` senso testare gli addendi (altrimenti l'errore potrebbe arrivare prima).

Comunque NotANumber non e` facile testarlo in un == .

NaN property
This read-only property represents the special value Not-a-Number, and is always unequal to any other number (including 0) and to NaN itself. As a static property, it is always referred to as Number.NaN.
(tratto da http://www.devguru.com/technologies/...ef/number.html )

Ti conviene testare se il valore letto e` vuoto, oppure qualche altra proprieta` (dipende dal contesto).