<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic [EXCEL to SAS] getting extra digits in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/EXCEL-to-SAS-getting-extra-digits/m-p/227279#M308031</link>
    <description>&lt;P&gt;hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;values that read in excel like 5.9 are imported as 5.8888888888888888888889, how is that possible? and how can i fix the addition of these extra digits?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;maybe it has something to do with the 64 bit version? i am ussing a 32 bit computer, but it can read xls, xlsx. i am using proc import, using settings for DBMS.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Sep 2015 15:00:00 GMT</pubDate>
    <dc:creator>michael90</dc:creator>
    <dc:date>2015-09-25T15:00:00Z</dc:date>
    <item>
      <title>[EXCEL to SAS] getting extra digits</title>
      <link>https://communities.sas.com/t5/SAS-Programming/EXCEL-to-SAS-getting-extra-digits/m-p/227279#M308031</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;values that read in excel like 5.9 are imported as 5.8888888888888888888889, how is that possible? and how can i fix the addition of these extra digits?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;maybe it has something to do with the 64 bit version? i am ussing a 32 bit computer, but it can read xls, xlsx. i am using proc import, using settings for DBMS.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2015 15:00:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/EXCEL-to-SAS-getting-extra-digits/m-p/227279#M308031</guid>
      <dc:creator>michael90</dc:creator>
      <dc:date>2015-09-25T15:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: [EXCEL to SAS] getting extra digits</title>
      <link>https://communities.sas.com/t5/SAS-Programming/EXCEL-to-SAS-getting-extra-digits/m-p/227290#M308032</link>
      <description>&lt;P&gt;Are the cells formulas or is there a hardcoded value of 5.9 that is being imported as 5.8888?&lt;/P&gt;&lt;P&gt;Please post a sample of your file if it's hardcoded.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2015 15:34:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/EXCEL-to-SAS-getting-extra-digits/m-p/227290#M308032</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-09-25T15:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: [EXCEL to SAS] getting extra digits</title>
      <link>https://communities.sas.com/t5/SAS-Programming/EXCEL-to-SAS-getting-extra-digits/m-p/227293#M308033</link>
      <description>&lt;P&gt;It sounds to me like your importing an Excel file correct? &amp;nbsp;If so then I would suppose the fault lies in Excel. &amp;nbsp;One Excel's "benefits" is hiding the underlying data. &amp;nbsp;Open the file in Excel and check the formating on the cell. &amp;nbsp;Try exporting that same sheet to a CSV then open the CSV file in Notepad, what does the data look like there? &amp;nbsp;If in the CSV it shows 5.9 correctly then import the CSV. &amp;nbsp;In fact that is my advice in any situation regarding Excel (other than don't use it in the first place), save the data to a proper data transfer format, CSV. &amp;nbsp;Then write a datastep (as I presume your using proc import which is at best a guessing utility) to import the CSV data. &amp;nbsp;You then know what your importing, and how your importing it. &amp;nbsp;Currently your just guessing.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2015 15:58:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/EXCEL-to-SAS-getting-extra-digits/m-p/227293#M308033</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-09-25T15:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: [EXCEL to SAS] getting extra digits</title>
      <link>https://communities.sas.com/t5/SAS-Programming/EXCEL-to-SAS-getting-extra-digits/m-p/227426#M308034</link>
      <description>&lt;P&gt;Excel is using the floating type, SAS is using the floating type. With a automatic type propagation don't by amazed on the effects arround floating numbers. RW9 advice makes a lot of sense. Know your data and know your toolsets.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Sep 2015 16:05:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/EXCEL-to-SAS-getting-extra-digits/m-p/227426#M308034</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-09-27T16:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: [EXCEL to SAS] getting extra digits</title>
      <link>https://communities.sas.com/t5/SAS-Programming/EXCEL-to-SAS-getting-extra-digits/m-p/227452#M308035</link>
      <description>&lt;P&gt;If all numbers in the column have the same number of digits, you could round it with something like&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;New_col=ROUND(Col,0.1);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If it's problem of how numbers are save it in floating number (I get a similar error with median of a pair number of obs, instead of .5 i get .4999999), to solve it I make a round in the 10^{-9}&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2015 06:22:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/EXCEL-to-SAS-getting-extra-digits/m-p/227452#M308035</guid>
      <dc:creator>arodriguez</dc:creator>
      <dc:date>2015-09-28T06:22:44Z</dc:date>
    </item>
  </channel>
</rss>

