Keeping a column with numbers from converting to scientific notation


I have a column on an Excel spreadsheet that has 18 numbers in it. What is the best way to format the column and read it into SAS  so the numbers don't convert to scientific format?
moriniaAdvanced Analytics AnalystAsked:
Who is Participating?
Aloysius LowConnect With a Mentor Commented:
do you mean the number has 18 digits?

SAS can't display a number more than 15 digits (some numbers with 15 digits can be displayed properly, some can't - can't remember the cutoff) properly, thus  it will use the scientific notation which inherently means a loss of accuracy... in fact, if you leave it to SAS, it will start displaying the scientific notation once the number has more than 12 digits...

for Excel, it appears they have the same constraint too - just tried on my Excel... thus not sure if the number you are seeing is a text? could you try to set the format of the column to text, instead of general or number, and attempt the import again? this will bring the numbers into SAS as text, but at least you get to keep everything...
Harry LeeConnect With a Mentor Commented:
As long as the column is not in General format, it will not turn.

I'm not sure if your 18 digits long number is some sort of ID number or is it an amount.

If it is an amount, consider changing the column format to Number format with no decimal place.

If it is an ID number, consider changing the column format to Text.
moriniaAdvanced Analytics AnalystAuthor Commented:
I noticed if I leave the column defined as numeric on the spreadsheet it imports OK.  As soon as I try to convert to text some of the numbers convert to scientific notation.
All Courses

From novice to tech pro — start learning today.