On Tue, 19 Feb 2013, artur tarassow wrote:
The following generates recheck=0 but I think it should be 1 (at
least to
the function description):
<hansl>
scalar check = NA
check
recheck = isnan(check)
recheck
</hansl>
No, the value of check is NA (Not Available, missing value),
which is not the same as NaN (Not a Number). Use missing()
to check for NAs.
# isnan example
matrix m = {0/0}
eval isnan(m[1])
Allin Cottrell