Re: [Rd] Dangerous Bug with IF function of R

From: Robert Lowe <ral64_at_cam.ac.uk>
Date: Tue, 19 Apr 2011 10:02:31 +0100

>
> I'm intrigued. After such a blatantly wrong claim about a bug in
> R... what exactly are you claiming about Matlab here?
> That it implements (software) decimal arithmetic on top of the
> cpu-internal binary arithmetic ? probably rather not ...
>

Just for confirmation the same thing doesn't work in MATLAB as one would expect.

i=0;
for j=1:11
i=i+0.1;
if i==1
i
end
end



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue 19 Apr 2011 - 11:40:00 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 19 Apr 2011 - 14:10:48 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive