Displaying 1 result from an estimated 1 matches for "my_numeric_na".
2009 Apr 30
2
NA_real_ <op> NaN -> NA or NaN, should we care?
...mpile src/main/arithmetic.c without optimization (just -g)
then both of those return NA.
On Windows, using a precompiled R 2.8.1 from CRAN I get
NA for both answers.
On Linux, after compiling src/main/arithmetic.c with -g -O2 the bit
patterns for NA_real_ and as.numeric(NA) are different:
> my_numeric_NA <- as.numeric(NA)
> writeBin(my_numeric_NA, ptmp<-pipe("od -x", open="wb"));close(ptmp)
0000000 07a2 0000 0000 7ff8
0000010
> writeBin(NA_real_, ptmp<-pipe("od -x", open="wb"));close(ptmp)
0000000 07a2 0000 0000 7ff0
0000010...