代码之家  ›  专栏  ›  技术社区  ›  Christopher Carroll Smith

R逻辑运算符无法检测序列中的值[重复]

  •  0
  • Christopher Carroll Smith  · 技术社区  · 5 年前

    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
    
    0 回复  |  直到 8 年前