[Rd] Dangerous Bug with IF function of R
Robert Lowe
ral64 at cam.ac.uk
Tue Apr 19 11:02:31 CEST 2011
>
> 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
More information about the R-devel
mailing list