(-2) %% 12 seems to give the wrong result in R pre 63.3:
e1 <- -2 e2 <- 12 e1 %% e2
[1] -2
e1 - floor(e1/e2) * e2
[1] 10 In Splus:
e1 <- -2 e2 <- 12 e1 %% e2
[1] 10
e1 - floor(e1/e2) * e2
[1] 10 Paul Gilbert -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._