From jan.hattendorf at unibas.ch  Sat Aug  1 22:05:13 2009
From: jan.hattendorf at unibas.ch (jan.hattendorf at unibas.ch)
Date: Sat,  1 Aug 2009 22:05:13 +0200 (CEST)
Subject: [Rd] incorrect result (41/10-1/10)%%1 (PR#13863)
Message-ID: <20090801200513.EC2A8282EF3D@mail.pubhealth.ku.dk>

Full_Name: jan hattendorf
Version: 2.9.0
OS: XP
Submission from: (NULL) (213.3.108.185)


I get an incorrect result for

(41/10-1/10)%%1

[1] 1

The error did not occur with other numbers than 41 (1, 11, 21, 31, 51, ...)


test <- rep(NA, 1000)
for(i in 1:1000){
  test[i] <- i/10-1/10
}
test[test%%1==0]



[Rd] incorrect result (41/10-1/10)%%1 (PR#13863)
jan.hattendorf at unibas.ch