1) If I run this under Windows:
data T;
NB=0.5000000000000000000000000;
A=(0.5=NB); put A=;
NB=0.500000000000000000000000;
A=(0.5=NB); put A=;
run;
SAS will not store the correct number in the first equality. The result is:
A=0
A=1
2) If I run the same code on a different platform, or if I add or remove zeros, the correct number is stored.
I think this should be recorded as a defect to be fixed.
More details on https://communities.sas.com/t5/Base-SAS-Programming/Expected-numeric-precision-behaviour-or-unexpect...