From pgilbert@bank-banque-canada.ca  Tue Mar 23 21:46:30 1999
From: pgilbert@bank-banque-canada.ca (Paul Gilbert)
Date: Tue, 23 Mar 1999 16:46:30 -0500
Subject: (-2) %% 12
Message-ID: <99Mar23.165342est.13451@mailgate.bank-banque-canada.ca>

(-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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


(-2) %% 12
Paul Gilbert