As far as my knowledge is concerned, when a informat, such as w.d or COMMAw.d, is used in a input statement. The number of decimal place to be read is depended on the digit d I specified in the informat. However, while I submit the following SAS code, the output are rounded off to the 3rd decimal place rahter than the 2nd decimal place. Is my understanding about the informat wrong? Can anyone help me to explain the output? Thanks for your kindness and enthusiasm.
input x 6.2;
proc print; run;
This is a fictitious data. I use it just want to demonstrate how the informat will influent different kinds of input data. Especially when the informat does not conform to the format of input data, the incompatible informat will effect the data SAS system actually read in. Hence the value 65 is read as 0.65 is just what I want to get. However, I encounter the unexpected problem aforementioned.