11-07-2013 11:59 PM
I have an excel dataset, when I read the data in SAS it is adding extra decimal places, the values all have two in excel, example:
When SAS reads the values in they have like 10 decimal places, so:
Why is SAS doing this and how do I get it to stop?
Thanks for your help!
11-08-2013 12:41 AM
Is the data in Excel formatted and the actual value is 21.71342342349 in Excel as well? Try and use another format with more decimals for this Excel cell and see what you get.
11-08-2013 01:09 AM
So you say when you click into the cell in Excel you see the number in the formula bar also with 2 decimals only?
Can you attach your Excel (or better a copy of it with only one sheet and a few lines of data having this issue)?
11-08-2013 02:37 AM
you can control the decimal place with the help of formats, please try
format var_name 8.2;
this will control the decimal places