<?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: Numeric format rounds number instead of displaying actual value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Numeric-format-rounds-number-instead-of-displaying-actual-value/m-p/463691#M285009</link>
    <description>&lt;P&gt;Just one piece of the pie here ... the 15-digits of precision limit that is often mentioned is for integers.&amp;nbsp; Decimal fractions may be imprecise with less than 15 digits.&lt;/P&gt;</description>
    <pubDate>Mon, 21 May 2018 01:43:07 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2018-05-21T01:43:07Z</dc:date>
    <item>
      <title>Numeric format rounds number instead of displaying actual value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Numeric-format-rounds-number-instead-of-displaying-actual-value/m-p/463680#M285008</link>
      <description>&lt;P&gt;I recently got annoyed comparing data that showed no difference even when displaying (supposedly) all possible digits .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using long formats was not enough; I had to derive the difference AND use&amp;nbsp;a long format to finally unhide the difference in value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Consider:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_; 
  X=input('409D593333333333',hex16.);
  Y=input('409D593333333334',hex16.); 
  Z=X-Y;
  putlog X 32.20 / Y 32.20 /@1 Z 32.20; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;       1878.30000000000000000000
       1878.30000000000000000000
         -0.00000000000022737368
&lt;/PRE&gt;
&lt;P&gt;Am I mistaken thinking that this behaviour is unintended, and that X and Y should be shown with a different value when using&amp;nbsp;a long format?&lt;/P&gt;
&lt;P&gt;I know that the difference is the 17th digit, which is beyond numerical precision.&amp;nbsp;That's not the point. We have a difference at the end of the number, we should see it when displaying the whole number.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Y is the badly rounded value by the way, but you wouldn't know it by looking at the 3 lines above. You need further computations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 May 2018 23:58:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Numeric-format-rounds-number-instead-of-displaying-actual-value/m-p/463680#M285008</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-05-20T23:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric format rounds number instead of displaying actual value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Numeric-format-rounds-number-instead-of-displaying-actual-value/m-p/463691#M285009</link>
      <description>&lt;P&gt;Just one piece of the pie here ... the 15-digits of precision limit that is often mentioned is for integers.&amp;nbsp; Decimal fractions may be imprecise with less than 15 digits.&lt;/P&gt;</description>
      <pubDate>Mon, 21 May 2018 01:43:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Numeric-format-rounds-number-instead-of-displaying-actual-value/m-p/463691#M285009</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-05-21T01:43:07Z</dc:date>
    </item>
  </channel>
</rss>

