Dear R users,


I ran into the strange situation where a number does not seem to equal its value. Try this:



a <- seq(0.05,0.7,0.05)[3]

b <- 0.15

a == b


Should this not be TRUE? a-b yields a very small number (and not 0) so this most probably is a numerical error, but why does seq create such numbers?


Thanks a lot
Jannis

______________________________________________
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.

Reply via email to