<?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 Arithmetic Precision in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Arithmetic-Precision/m-p/164074#M42553</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are in the midst of converting from SAS 9.1 to SAS 9.3.&amp;nbsp; As part of the process we are running sample programs on both systems&lt;/P&gt;&lt;P&gt;with the same data and comparing the results.&amp;nbsp; All the results are in SAS tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In one such test there were some errors in the figures where the difference is very small - in the order of 1.3E-13.&amp;nbsp; I know that these&lt;/P&gt;&lt;P&gt;values would affect the outcome because the figures are dollars and cents, but I'm wondering why there is a difference in the first&lt;/P&gt;&lt;P&gt;place?&amp;nbsp; Is this something with version of SAS or perhaps I need to change a option?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I one such case I have over 2 million records in each table and only 1 record is unequal and the difference is -1.31E-14. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Nov 2014 16:55:37 GMT</pubDate>
    <dc:creator>OS2Rules</dc:creator>
    <dc:date>2014-11-10T16:55:37Z</dc:date>
    <item>
      <title>Arithmetic Precision</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Arithmetic-Precision/m-p/164074#M42553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are in the midst of converting from SAS 9.1 to SAS 9.3.&amp;nbsp; As part of the process we are running sample programs on both systems&lt;/P&gt;&lt;P&gt;with the same data and comparing the results.&amp;nbsp; All the results are in SAS tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In one such test there were some errors in the figures where the difference is very small - in the order of 1.3E-13.&amp;nbsp; I know that these&lt;/P&gt;&lt;P&gt;values would affect the outcome because the figures are dollars and cents, but I'm wondering why there is a difference in the first&lt;/P&gt;&lt;P&gt;place?&amp;nbsp; Is this something with version of SAS or perhaps I need to change a option?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I one such case I have over 2 million records in each table and only 1 record is unequal and the difference is -1.31E-14. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 16:55:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Arithmetic-Precision/m-p/164074#M42553</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2014-11-10T16:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Arithmetic Precision</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Arithmetic-Precision/m-p/164075#M42554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps reviewing these two documents will resolve it for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/documentation/onlinedoc/91pdf/sasdoc_913/base_lrconcept_9196.pdf" title="https://support.sas.com/documentation/onlinedoc/91pdf/sasdoc_913/base_lrconcept_9196.pdf"&gt;https://support.sas.com/documentation/onlinedoc/91pdf/sasdoc_913/base_lrconcept_9196.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/62753/HTML/default/viewer.htm#p0ji1unv6thm0dn1gp4t01a1u0g6.htm" title="http://support.sas.com/documentation/cdl/en/lrcon/62753/HTML/default/viewer.htm#p0ji1unv6thm0dn1gp4t01a1u0g6.htm"&gt;SAS(R) 9.3 Language Reference: Concepts, Second Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E-13 is in the range where the floating point processor can produce random errors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 18:34:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Arithmetic-Precision/m-p/164075#M42554</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2014-11-10T18:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Arithmetic Precision</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Arithmetic-Precision/m-p/164076#M42555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using PROC COMPARE to confirm if two SAS tables are the same or not, when you use METHOD = EXACT it is likely to report the very small floating point differences you are seeing. Try METHOD = ABSOLUTE instead and SAS will ignore differences in the precision range.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 18:42:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Arithmetic-Precision/m-p/164076#M42555</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2014-11-10T18:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Arithmetic Precision</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Arithmetic-Precision/m-p/164077#M42556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SASWiki:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using METHOD=ABSOLUTE resulted in the same error, but METHOD=RELATIVE passed the record.&amp;nbsp; Seems that the&lt;/P&gt;&lt;P&gt;field in error is 3.72E12 and has a difference of .000488 between files.&amp;nbsp; This is above the CRITERION value of .00001 so&lt;/P&gt;&lt;P&gt;that is why the fields are different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I must add that the 2 tables were created on 2 different machines running 2 different versions of SAS with different&lt;/P&gt;&lt;P&gt;bitness (on x32 the other x64).&amp;nbsp; I think this contributes to the why some random numbers are a little out of sync.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 18:59:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Arithmetic-Precision/m-p/164077#M42556</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2014-11-10T18:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Arithmetic Precision</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Arithmetic-Precision/m-p/164078#M42557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;METHOD = ABSOLUTE works for me but I am comparing within the same operating system and my differences are 1E-14 and smaller. Tweeking the CRITERION should give you what you require if you want to avoid reporting "large small differences".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 19:59:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Arithmetic-Precision/m-p/164078#M42557</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2014-11-10T19:59:22Z</dc:date>
    </item>
  </channel>
</rss>

