This is fine!
Leon
Am 19.02.2013 um 19:47 schrieb Allin Cottrell <cottrell(a)wfu.edu>:
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
_______________________________________________
Gretl-users mailing list
Gretl-users(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users