[R] bug?
(Ted Harding)
Ted.Harding at nessie.mcc.ac.uk
Mon Jul 14 23:16:38 CEST 2003
> At 7/14/2003 at 03:29 AM, Marc Vandemeulebroecke wrote:
>Dear R programmers,
>
>is there a sensible explanation for the following behaviour?
>
> > seq(0.7, 0.9, by=0.1) == 0.8
>[1] FALSE FALSE FALSE
Yet another %**% function ...
> "%~=%"<-function(x,y){abs(x-y)<1e-15}
> seq(0.7, 0.9, by=0.1) %~=% 0.8
[1] FALSE TRUE FALSE
Ted.
--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at nessie.mcc.ac.uk>
Fax-to-email: +44 (0)870 167 1972
Date: 14-Jul-03 Time: 22:16:38
------------------------------ XFMail ------------------------------
More information about the R-help
mailing list