Re: [Rd] Floating point maths in R

2006-12-09 Thread Tom McCallum
Many thanks for pointing that out. Tom On Sat, 09 Dec 2006 13:48:06 -, Peter Dalgaard <[EMAIL PROTECTED]> wrote: > Tom McCallum wrote: >> Hi, >> >> I am not sure if this is just me using R (R-2.3.1 and R-2.4.0) in the >> wrong way or if there is a more serious bug. I was having proble

Re: [Rd] Floating point maths in R

2006-12-09 Thread Duncan Murdoch
On 12/9/2006 8:29 AM, Tom McCallum wrote: > Hi, > > I am not sure if this is just me using R (R-2.3.1 and R-2.4.0) in the > wrong way or if there is a more serious bug. I was having problems > getting some calculations to add up so I ran the following tests: You should read the FAQ item "Why

Re: [Rd] Floating point maths in R

2006-12-09 Thread Peter Dalgaard
Tom McCallum wrote: > Hi, > > I am not sure if this is just me using R (R-2.3.1 and R-2.4.0) in the > wrong way or if there is a more serious bug. I was having problems > getting some calculations to add up so I ran the following tests: > > Please read FAQ 7.31 and the reference therein.

[Rd] Floating point maths in R

2006-12-09 Thread Tom McCallum
Hi, I am not sure if this is just me using R (R-2.3.1 and R-2.4.0) in the wrong way or if there is a more serious bug. I was having problems getting some calculations to add up so I ran the following tests: > (2.34567 - 2.0) == 0.34567 <--- should be true [1] FALSE > (2.23-2.00) == 0