search for: tp1577815p1577903

Displaying 1 result from an estimated 1 matches for "tp1577815p1577903".

2010 Mar 04
2
precision issue?
Hi R Gurus, I am trying to figure out what is going on here. > a <- 68.08 > b <- a-1.55 > a-b [1] 1.55 > a-b == 1.55 [1] FALSE > round(a-b,2) == 1.55 [1] TRUE > round(a-b,15) == 1.55 [1] FALSE Why should (a - b) == 1.55 fail when in fact b has been defined to be a - 1.55? Is this a precision issue? How do i correct this? Alex