0.65/AIX
Kurt Hornik
Kurt.Hornik@ci.tuwien.ac.at
Tue, 13 Jul 1999 18:36:57 +0200 (CEST)
>>>>> Peter Dalgaard BSA writes:
> Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at> writes:
>> Hmm ... Compilation-wise it seems that -D_ALL_SOURCE works o.k. for me.
>> Now, this gives
>>
>> > 1/0 + 1/0# Inf
>> [1]INF
>> > 1/0 - 1/0# NaN
>> [1]NaNQ
>>
>> which is only sort of o.k.???
> No! ...which is patently WRONG. When this kind of printout, it shows
> that the print routines in R are not able to recognize Inf and NaN
> (using R_FINITE) which implies that they aren't properly recognized
> anywhere else.
>> For the time being, I'll commit this version ...
> Not for long, I hope...
Hmm.
On the system I have access to, I can compile only with
-D_XOPEN_SOURCE_EXTENDED=2 (VERY noisy)
or
-D_ALL_SOURCE
In either case, we get the above.
I will hence use ALL_SOURCE for the time being.
Note that
> 1/0 - 1/0# NaN
[1]NaNQ
> is.nan(1/0 - 1/0)
[1] TRUE
so what is really going on here???
-k
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._