Question

Does anybody know what SAS format is needed in order to convert this string correctly?

data _null_;
 x="0.14553821459";
 y=input(x,best32.);
 put y=;
run;
Was it helpful?

Solution

Try this

data _null_;
 x="0.14553821459";
 y=input(x,13.11);
 put y= 13.11;
run;

I got

y=0.14553821459
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top