Dear Jon,
See FAQ 7.31 at
http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-doesn_0027t-R-think-these-numbers-are-equal_003f

HTH,

Jorge



On Tue, Nov 25, 2008 at 1:05 PM, Jon Zadra <jrz9f@virginia.edu> wrote:

> Hi,
>
> This is really strange.  Can anyone help explain what's going on here (on 3
> and 7)?
>
> > targets <- seq(from=.1, to=.9, by=.1)
>
> > targets[1]==.1
> [1] TRUE
>
> > targets[2]==.2
> [1] TRUE
>
> > targets[3]==.3
> [1] FALSE
>
> > targets[4]==.4
> [1] TRUE
>
> > targets[5]==.5
> [1] TRUE
>
> > targets[6]==.6
> [1] TRUE
>
> > targets[7]==.7
> [1] FALSE
>
> > targets[8]==.8
> [1] TRUE
>
> > targets[9]==.9
> [1] TRUE
>
> Thanks,
>
> Jon
>
> --
> Jon Zadra
> Department of Psychology
> University of Virginia
> P.O. Box 400400
> Charlottesville VA 22904
> (434) 982-4744
> email: zadra@virginia.edu
>
> <http://www.google.com/calendar/embed?src=jzadra%40gmail.com>
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]

