Floating Point Numeric - SAS decimal issue
-
05-07-2019 - |
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;
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