I'm trying to compare the strings using strip function and that is not doing the comparison as I except. IMO or in terms of project, value 253.3 or 253.30 or 253.0000000000 should be equal. However the following SAS code says it is not equal. I'm OK if the string is converted to numeric while we do the comparison in the following code but the condition is I have to preserve the format numx18.10. Right now the following comparison is not equal but I want it to resolve it as equal. If strip('253.3') ne strip(put(input('253.3',numx18.10),numx18.10)) then num_error=1;
... View more