以下代码显然是错误的.有什么问题?
i <- 0.1 i <- i + 0.05 i ## [1] 0.15 if(i==0.15) cat("i equals 0.15") else cat("i does not equal 0.15") ## i does not equal 0.15
floating-point r floating-accuracy r-faq
floating-accuracy ×1
floating-point ×1
r ×1
r-faq ×1