Hello SASers,
I am using proc import to import a .csv file created by excel. The file has a set of numeric variables. The values of all the variables are either 0 or 1.08695652173913.
But, SAS is changing the value of 1.08695652173913 to the value of 1.086956522.
Why does this happen, and what can I do to get SAS to import the exact values from the .csv file?
This is a big issue because I am summing over a large number of numeric variables, and it is resulting in a 1 point difference for each observation.
Thanks
Looks like the default BEST12. display format.
How do you know SAS is actually truncating/rounding? It could just be displaying a certain number of digits by default but internally storing with full precision. Try formatting the variable as say BEST16. to confirm.
Looks like the default BEST12. display format.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.