Re: [R] help for the first poster- a simple question

2008-03-03 Thread Xuejun Qin
lt;-pmin(haplo[,1],haplo[,2]) haplo[cond1>=0,] But the program cannot get right one, because -1.387779e-16>=0 is FALSE -7.304099e-18>=0 is FALSE Thank you! xj. - Original Message - From: "Gavin Simpson" <[EMAIL PROTECTED]> To: "Xuejun Qin"

[R] help for the first poster- a simple question

2008-03-03 Thread Xuejun Qin
Hi, there, I cannot get accurate value for calculation. for example: ld<-sqrt(1*0.05*0.95*0.05*0.95) 0.05*0.95-ld=-6.938894e-18 0.05*0.95-ld==0 is False. I met this problem in my program, how can I handle it. Thanks. xj. __ R-help@r-project.org mai