Skip to content
Prev 267329 / 398503 Next

Inverse of FAQ 7.31.

On Aug 2, 2011, at 08:02 , Rolf Turner wrote:

            
I think the long and the short of it is that R lost a couple of bits of precision that C retained. This sort of thing happens if R stores things into 64 bit floating point objects while C keeps them in 80 bit CPU registers. In general, floating point calculations do not obey the laws of math, for example the associative law (i.e., (a+b)-c ?= a+(b-c), especially if b and c are large and nearly equal), so any reordering of expressions by the compiler may give a slightly different result.