@FoxHope wrote:
Hi,
Do you mind if I ask further clarification question? Because it seems that this goes beyond the precision issue. If 1/3 cannot be represented precisely in binary, shouldn't the value of c and d be BOTH off by the same amount and their difference should be zero regardless?
Agree, what you are reporting doesn't make sense to me, and isn't the basic numeric precision issue.
Even if somehow these two statements could return different values (because of what, random noise in precision):
m = 1/a;
n = 1/a;
I can't think of an explanation for how these two statements could return different values (accept again random noise in precision...)
x = m-n;
y = m-n;
And yes, your addition of a PUT statement shouldn't change values.
Something odd is happening. Did you quit SAS and restart a fresh session?
... View more