I am working on SAS version 9.4. I have a value LBSTRESC='<10.0'. I need to determine how many digits are present in LBSTRESC to the right of the decimal. I thought that the FINDC function would be appropriate. I tried several different combinations of startpos and modifier arguments shown below (and possibly more that produced unexpected results): lbstresc='<10.0';
num=findc(lbstresc,'.',-1);
num=findc(lbstresc,'.','b');
num=findc(lbstresc,'.',-1,'b');
num=findc(lbstresc,'.',-10);
num=findc(lbstresc,'.',-10,'b');
num=findc(lbstresc,'.',10,'b');
num=findc(lbstresc,'.',1,'b'); All of these attempts gave me num=0 or num=4. Can someone help me correctly execute this function so that I can get num=2, as in the decimal place is the second value from the right to the left? Thank you!
... View more