Re: [R] trunc/floor a number -- strange bahaviour

2009-02-12 Thread ONKELINX, Thierry
That is not strange behaviour. It's a case of FAQ 7.31: http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-doesn_0027t-R-think-these-numbers-are-equal_003f HTH, Thierry ir. Thierry Onkelinx Instituut voor natuur- en bo

Re: [R] trunc/floor a number -- strange bahaviour

2009-02-12 Thread Duncan Murdoch
On 2/12/2009 10:20 AM, Žroutík wrote: Hi everybody, given a fresh rgui.exe load on winxp OS, I enter (a minimal exaple) n <- 12.357531 Then the following command: n <- (n - floor(n))*10; n gives the following outputs: [1] 3.57531 [1] 5.7531 [1] 7.531 [1] 5.31 [1] 3.1 [1] 1 === still a