Re: [R] arithmetic and logical operators

2013-01-30 Thread Ted Harding
On 30-Jan-2013 20:39:34 Berend Hasselman wrote: > > On 30-01-2013, at 21:32, Dave Mitchell wrote: > >> Why, in R, does (0.1 + 0.05) > 0.15 evaluate to True? What am I missing >> here? How can I ensure this (ostensibly incorrect) behavior doesn't >> introduce bugs into my code? Thanks for your

Re: [R] arithmetic and logical operators

2013-01-30 Thread William Dunlap
sage- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf > Of Dave Mitchell > Sent: Wednesday, January 30, 2013 12:32 PM > To: r-help@r-project.org > Subject: [R] arithmetic and logical operators > > Why, in R, does (0.1 + 0.05) >

Re: [R] arithmetic and logical operators

2013-01-30 Thread Berend Hasselman
On 30-01-2013, at 21:32, Dave Mitchell wrote: > Why, in R, does (0.1 + 0.05) > 0.15 evaluate to True? What am I missing > here? How can I ensure this (ostensibly incorrect) behavior doesn't > introduce bugs into my code? Thanks for your time. > R-FAQ 7.31: http://cran.r-project.org/doc/FAQ

Re: [R] arithmetic and logical operators

2013-01-30 Thread R. Michael Weylandt
R FAQ 7.31 (Note, this isn't R specific, rather it's a problem with the finitude of computers) MW On Wed, Jan 30, 2013 at 8:32 PM, Dave Mitchell wrote: > Why, in R, does (0.1 + 0.05) > 0.15 evaluate to True? What am I missing > here? How can I ensure this (ostensibly incorrect) behavior doesn'

[R] arithmetic and logical operators

2013-01-30 Thread Dave Mitchell
Why, in R, does (0.1 + 0.05) > 0.15 evaluate to True? What am I missing here? How can I ensure this (ostensibly incorrect) behavior doesn't introduce bugs into my code? Thanks for your time. Dave Mitchell [[alternative HTML version deleted]] ___