I would like to read and display numbers like below using infile
statement -
without loosing any of the digits ( significant and non significant both) from a flat file which are the best formats to use in for - input , informat and format.
EDIT:
Have tried below so far, digits getting truncated for the last one , rest two are coming fine
data _null_;
infile datalines;
format x BEST32.;
input x : BEST32.;
put x=;
datalines;
0.02133322413531
25895449673.5189
190848802804.89248974
;
run;
Output:
At the default numeric length of 8 bytes, SAS can only accurately store floating point values to approximately 15 digits. This link best describes the reasons for this.
Or for further light reading, this link provides more detailed information
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With