<?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 Re: Keeping Decimal Places in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Keeping-Decimal-Places/m-p/441932#M110544</link>
    <description>&lt;P&gt;I am importing&amp;nbsp;as text exactly to keep all the 16 decimal places '0.1234567890123456'. However, when I create a numeric variable converting the text to numeric, I only can keep 14 decimal places 0.12345678901234.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to confirm whether SAS has such a limitation or I can find any numeric format to keep all the 16 decimal places.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 02 Mar 2018 21:59:33 GMT</pubDate>
    <dc:creator>danfavero</dc:creator>
    <dc:date>2018-03-02T21:59:33Z</dc:date>
    <item>
      <title>Keeping Decimal Places</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Keeping-Decimal-Places/m-p/441921#M110538</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the following value in a variable '0.1234567890123456'. I need to create a numeric variable to keep exactly the same number as the text&amp;nbsp;and tried a variety of formats. However, the closest I got was a numeric field with the number&amp;nbsp;0.12345678901234 (14 decimal places instead of 16)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any hint to keep all 16?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 21:17:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Keeping-Decimal-Places/m-p/441921#M110538</guid>
      <dc:creator>danfavero</dc:creator>
      <dc:date>2018-03-02T21:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping Decimal Places</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Keeping-Decimal-Places/m-p/441922#M110539</link>
      <description>&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=p0ji1unv6thm0dn1gp4t01a1u0g6.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=p0ji1unv6thm0dn1gp4t01a1u0g6.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How did you import the data? It may be better to do it in the import stage than after the fact, since SAS isn't likely storing the numbers with 16 decimal places correctly in the first place.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 21:25:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Keeping-Decimal-Places/m-p/441922#M110539</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-02T21:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping Decimal Places</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Keeping-Decimal-Places/m-p/441932#M110544</link>
      <description>&lt;P&gt;I am importing&amp;nbsp;as text exactly to keep all the 16 decimal places '0.1234567890123456'. However, when I create a numeric variable converting the text to numeric, I only can keep 14 decimal places 0.12345678901234.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to confirm whether SAS has such a limitation or I can find any numeric format to keep all the 16 decimal places.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 21:59:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Keeping-Decimal-Places/m-p/441932#M110544</guid>
      <dc:creator>danfavero</dc:creator>
      <dc:date>2018-03-02T21:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping Decimal Places</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Keeping-Decimal-Places/m-p/441949#M110545</link>
      <description>&lt;P&gt;SAS has this limitation. Please see the link in my first response.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 22:31:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Keeping-Decimal-Places/m-p/441949#M110545</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-02T22:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping Decimal Places</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Keeping-Decimal-Places/m-p/441981#M110555</link>
      <description>&lt;P&gt;Curious to know why you need 16 decimal places in the first place?&lt;/P&gt;</description>
      <pubDate>Sat, 03 Mar 2018 00:29:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Keeping-Decimal-Places/m-p/441981#M110555</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-03-03T00:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping Decimal Places</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Keeping-Decimal-Places/m-p/442157#M110593</link>
      <description>&lt;P&gt;If you need to store more digits than SAS can represent exactly using floating point numbers then you need to store them as character strings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What type of arithmetic are you doing on these values?&amp;nbsp; Why do you think that the 16th least significant digit has any added value?&lt;/P&gt;</description>
      <pubDate>Sun, 04 Mar 2018 18:07:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Keeping-Decimal-Places/m-p/442157#M110593</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-03-04T18:07:24Z</dc:date>
    </item>
  </channel>
</rss>

