<?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: Why the values of numeric variable in two data sets  containing equal values are not matching in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Why-the-values-of-numeric-variable-in-two-data-sets-containing/m-p/344673#M79225</link>
    <description>&lt;P&gt;And the practical affect of a difference of&lt;/P&gt;
&lt;P&gt;0.000000000000013840&lt;/P&gt;
&lt;P&gt;is going to be what on your process?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Mar 2017 15:47:21 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-03-27T15:47:21Z</dc:date>
    <item>
      <title>Why the values of numeric variable in two data sets  containing equal values are not matching</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-the-values-of-numeric-variable-in-two-data-sets-containing/m-p/344508#M79174</link>
      <description>&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran proc compare on two datasets. The numeric variable values of two datasets &amp;nbsp;are exactly same but not matching in proc compare. Any suggestions. Please help. Thanks.&lt;/P&gt;&lt;P&gt;The format and informat are same in both datasets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;I attached a proc compare report.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data base&lt;/P&gt;&lt;P&gt;AVAL&lt;/P&gt;&lt;P&gt;102.64285714&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data compare&lt;/P&gt;&lt;P&gt;AVAL&lt;/P&gt;&lt;P&gt;102.64285714&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 05:57:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-the-values-of-numeric-variable-in-two-data-sets-containing/m-p/344508#M79174</guid>
      <dc:creator>knveraraju91</dc:creator>
      <dc:date>2017-03-27T05:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why the values of numeric variable in two data sets  containing equal values are not matching</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-the-values-of-numeric-variable-in-two-data-sets-containing/m-p/344510#M79175</link>
      <description>&lt;P&gt;Look at the FUZZ option in PROC COMPARE&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 06:02:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-the-values-of-numeric-variable-in-two-data-sets-containing/m-p/344510#M79175</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-27T06:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why the values of numeric variable in two data sets  containing equal values are not matching</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-the-values-of-numeric-variable-in-two-data-sets-containing/m-p/344539#M79181</link>
      <description>&lt;P&gt;Visibly equal data may not be technically equal. The way numbers are stored in SAS may create imprecisions far down from the decimal point that are not displayed when using typical number formats, but are detected by every comparison.&lt;/P&gt;
&lt;P&gt;You can see this when compare displays the difference as1E-14 or something similar.&lt;/P&gt;
&lt;P&gt;Either use the fuzz factor in compare (as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; already suggested), or make use of the round() function when doing calculations that involve fractions.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 08:23:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-the-values-of-numeric-variable-in-two-data-sets-containing/m-p/344539#M79181</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-03-27T08:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Why the values of numeric variable in two data sets  containing equal values are not matching</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-the-values-of-numeric-variable-in-two-data-sets-containing/m-p/344673#M79225</link>
      <description>&lt;P&gt;And the practical affect of a difference of&lt;/P&gt;
&lt;P&gt;0.000000000000013840&lt;/P&gt;
&lt;P&gt;is going to be what on your process?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 15:47:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-the-values-of-numeric-variable-in-two-data-sets-containing/m-p/344673#M79225</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-03-27T15:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Why the values of numeric variable in two data sets  containing equal values are not matching</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-the-values-of-numeric-variable-in-two-data-sets-containing/m-p/344680#M79229</link>
      <description>&lt;P&gt;That is just one of the side effects of using binary computers to perform mathematicl operations.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since there are many numbers that cannot be stored exactly in the IEEE floating point format you need to take that into consideration.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a simple example that uses the fact the one tenth cannot be stored exactly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  one=1 ;
  do _n_=1 to 10 ;
     another_one + (1/10) ;
  end;
  diff = one - another_one ;
  put (_all_) (= best32. /  );
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;one=1
another_one=1
diff=1.1102230246251E-16&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Mar 2017 16:07:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-the-values-of-numeric-variable-in-two-data-sets-containing/m-p/344680#M79229</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-03-27T16:07:08Z</dc:date>
    </item>
  </channel>
</rss>

