Skip to content

logical operator and addition (PR#10665)

2 messages · nicolas_simonis at dfci.harvard.edu, Duncan Murdoch

#
Full_Name: Nicolas Simonis
Version: 2.6.1
OS: windows
Submission from: (NULL) (155.52.10.223)


Very funny bug :
[1] FALSE
[1] TRUE

control :
[1] FALSE
[1] FALSE

With R 2.6.1 windows. it's not doing it with R 2.3.1 linux...
#
nicolas_simonis at dfci.harvard.edu wrote:
I don't see a bug here, I see failure to read FAQ 7.31.  The value 0.6 
is less than 0.4+0.2, when the operation is done in floating point 
approximations.  None of those three numbers is exactly representable.

 > (0.4+0.2) - 0.6
[1] 1.110223e-16

Duncan Murdoch