I believe this is a FAQ. Examine:
> format((5.05-floor(5))*100, nsmall=16) [1] "4.9999999999999822" > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Werner Bier > Sent: Tuesday, November 29, 2005 3:35 PM > To: r-help@stat.math.ethz.ch > Subject: [R] floor() > > > Dear All, > > Is this right? > > > floor((5.05-floor(5))*100) > [1] 4 > > I would expect 5, or am I wrong? > > Thanks and regards, > W > > > --------------------------------- > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html