<?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: caluculed in sas proc in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/244193#M45480</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/44053"&gt;@LineMoon﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please see &lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/the-floating-point-addition-is-it-a-commutative/m-p/244114#M45455" target="_blank"&gt;my reply&lt;/A&gt;&amp;nbsp;in the separate thread where you posted this question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you saw from&amp;nbsp;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/caluculed-in-sas-proc/m-p/243350#M45240" target="_blank"&gt;one of PG's posts&lt;/A&gt;&amp;nbsp;in this thread,&amp;nbsp;there are such examples with &lt;EM&gt;three&lt;/EM&gt; summands. This has to do with the fact that the &lt;EM&gt;associative&lt;/EM&gt; law of addition, (a+b)+c=a+(b+c), breaks down indeed when numeric representation issues come into play. This is explained in one of the standard references on the subject,&amp;nbsp;&lt;A href="http://support.sas.com/techsup/technote/ts230.html" target="_blank" rel="nofollow"&gt;SAS Technical support document TS-230 "Dealing with Numeric Representation Error in SAS Applications...&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe, the examples of a+b not equal to b+a which&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw﻿&lt;/a&gt;&amp;nbsp;remembered, were specific to the IBM mainframe environment he worked in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're interested in further "surprising" results which other programmers came across recently, here are three discussions from last month where I contributed detailed answers, including references and general information:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/decimal-places-Calculaitons/m-p/237767" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/decimal-places-Calculaitons/m-p/237767&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/ceil-function-bug/m-p/239275" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/ceil-function-bug/m-p/239275&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://communities.sas.com/t5/General-SAS-Programming/Multiplication-Error-After-some-Digit/m-p/239941" target="_blank"&gt;https://communities.sas.com/t5/General-SAS-Programming/Multiplication-Error-After-some-Digit/m-p/239941&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;"Classical" results include elementary calculations such as:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
if 0.1+0.7~=0.8 then put 'This';
if 3*0.3&amp;lt;0.9    then put 'cannot';
if 9.9/3&amp;gt;3.3    then put 'be true!';
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In 2012 I observed a case where two identically defined variables in the same data step contained different values (see &lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/the-floating-point-addition-is-it-a-commutative/m-p/244114#M45455" target="_blank"&gt;the other thread&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;More recently (2015, with SAS 9.4 on Windows 7) I encountered examples where the internal value of a decimal fraction changed when adding trailing zeros or writing it in exponential notation:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
if 0.00001 ne 1.0E-5   then put 'surprise 1';
if 0.00001 =  1E-5     then put 'OK 1';
if 1E-5 ne 1.0E-5      then put 'surprise 2';
if 1.0E-5 = 1.00E-5    then put 'OK 2';
if 1.00E-5 ne 1.000E-5 then put 'surprise 3';
if 1E-5 = 1.000E-5     then put 'OK 3';
if 0.00001 ne 0.0000100000000000000000000 then put 'surprise 4';
run; /* All IF conditions, including the surprising ones, evaluate to true. */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;As it turned out, you can write the numeric literals 1.0E-5, 1.00E-5, 1.000E-5, ... with up to 308 zeros (cf. CONSTANT('SMALL')=2.2250738585072E-308). In this sequence, the internal value stored by SAS changes 96 (!) times in a strange pattern between four different binary floating-point representations. In numeric literals without exponential notation it seems that these effects start only when "too many" decimals are involved: e.g.&amp;nbsp;&lt;FONT face="courier new,courier"&gt;0.788999999999999757 ne 0.788999999999999757&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;@All:&lt;/STRONG&gt;&amp;nbsp;If you encounter a new class of unexpected results in the context of numeric representation in SAS, please let me know.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jan 2016 11:03:29 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2016-01-18T11:03:29Z</dc:date>
    <item>
      <title>caluculed in sas proc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243331#M45235</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Is it possible to get the differents results for same code and the same input by using&lt;/P&gt;
&lt;P&gt;calculated in sas proc ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(calculated v)*m as T&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;T can have a different results for the same code and in put ? but with a&amp;nbsp; very small différence ?&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 20:55:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243331#M45235</guid>
      <dc:creator>LineMoon</dc:creator>
      <dc:date>2016-01-13T20:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: caluculed in sas proc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243338#M45236</link>
      <description>&lt;P&gt;Yes, this is possible, in particular if the code was executed on different platforms. Perhaps you can expand a little bit on how you obtained the two different results.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 21:20:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243338#M45236</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-01-13T21:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: caluculed in sas proc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243343#M45238</link>
      <description>&lt;P&gt;Thank for your message.&lt;/P&gt;
&lt;P&gt;Please, why this problem with calculted in sas proc ?&lt;/P&gt;
&lt;P&gt;Can you explain more ? is it possible to know the machine and to identify the main raison?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 21:38:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243343#M45238</guid>
      <dc:creator>LineMoon</dc:creator>
      <dc:date>2016-01-13T21:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: caluculed in sas proc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243350#M45240</link>
      <description>&lt;P&gt;The main reason is the representation of floating point numbers in computers. It is only a (very good) approximation. Sometimes, the order of evaluation is enough to make a difference, particularly in calculations involving the sum of numbers with very different scale. Consider for example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
a = 1; b = 1e-14;
run;

proc sql;
select
    a + 2*b as c format=e17.,
    calculated c - a - b as d format=e12.,
    calculated c - b - a as e format=e12.
from test;
quit;


&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;                                   c             d             e
                   ----------------------------------------------------------------
                    1.0000000000E+00   9.98401E-15   9.98398E-15
&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Jan 2016 22:08:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243350#M45240</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-01-13T22:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: caluculed in sas proc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243351#M45241</link>
      <description>&lt;P&gt;PG was faster and gave a nice&amp;nbsp;example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, numeric representation issues can be one reason for slightly different results of calculations which should actually give identical results from a mathematical point of view. PROC SQL is particularly prone to such issues, because (as you probably know) it sometimes&amp;nbsp;orders&amp;nbsp;the rows of a table in an unpredictable (and platform-dependent) way. Now, if a calculation, let's say a sum, is done like a+b+c+d+e+... or d+a+e+c+b+..., the results obtained by the computer can differ, because rounding errors would accumulate differently depending on the order of the summands, see PG's example.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 22:12:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243351#M45241</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-01-13T22:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: caluculed in sas proc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243355#M45244</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;It is very interessting.&lt;/P&gt;
&lt;P&gt;Please, do you have a good doc for "PROC SQL is particularly prone to such issues, because (as you probably know) it sometimes&amp;nbsp;orders&amp;nbsp;the rows of a table in an unpredictable (and platform-dependent) " ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suppose, it depends the platform, so how can I the machine in sas log ? an other means which give the best result ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To me, if I have (calculated x)*g&amp;nbsp; as f&amp;nbsp; is a different of (calculated x)*g&amp;nbsp; as f&amp;nbsp; , it will be the platform ? how can i identify the problem in sas log ?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 22:44:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243355#M45244</guid>
      <dc:creator>LineMoon</dc:creator>
      <dc:date>2016-01-13T22:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: caluculed in sas proc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243356#M45245</link>
      <description>&lt;P&gt;&amp;nbsp;Than you&lt;/P&gt;
&lt;P&gt;That's very intersting&lt;/P&gt;
&lt;P&gt;To me, if I have (calculated x)*g&amp;nbsp; as f&amp;nbsp; is a different of (calculated x)*g&amp;nbsp; as f&amp;nbsp; , it will be the platform ? how can i identify the problem in sas log ?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 22:45:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243356#M45245</guid>
      <dc:creator>LineMoon</dc:creator>
      <dc:date>2016-01-13T22:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: caluculed in sas proc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243358#M45247</link>
      <description>&lt;P&gt;What are you considering large differences? The difference here could be considered the difference between rounding your numbers and calculating or calculating with all the raw data. I wouldn't expect significant differences and I don't think you'd see any information in the log regarding such an issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This isn't a SAS SQL issue, its a computer numerical representation issue, Excel will have the same issue, SAS, Python, R ... they all have the same limitations. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the documentation representation of the issue:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a000695157.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a000695157.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 23:08:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243358#M45247</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-13T23:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: caluculed in sas proc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243360#M45248</link>
      <description>&lt;P&gt;The &lt;A href="http://support.sas.com/documentation/cdl/en/sqlproc/63043/HTML/default/viewer.htm#n0gwogdxntzooun1azrzwrwrqvzq.htm" target="_blank"&gt;documentation of the ORDER BY clause&lt;/A&gt;, for example, says: "Without an ORDER BY clause, the order of the output rows is determined by the internal processing of PROC SQL, the default collating sequence of SAS, and your operating environment." That order does matter for certain&amp;nbsp;calculations, has been demonstrated by PG's example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know whether it is the platform ("operating environment") in your specific case. You haven't told us so far, how you obtained your results and whether different platforms were involved at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will hardly be able to identify the problem in the SAS log, because from SAS's perspective everything was done correctly and as usual. It won't reveal any details about the "&lt;SPAN&gt;internal processing of PROC SQL" mentioned above.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;When you're asking about the "best result", are you really concerned about those tiny differences like the 3E-20 in PG's example?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 23:11:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243360#M45248</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-01-13T23:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: caluculed in sas proc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243361#M45249</link>
      <description>&lt;P&gt;The SAS 9.4 version of the documentation linked by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza﻿&lt;/a&gt;&amp;nbsp;&lt;SPAN&gt;has been improved considerably compared to the earlier SAS versions:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/68089/HTML/default/viewer.htm#p0ji1unv6thm0dn1gp4t01a1u0g6.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/68089/HTML/default/viewer.htm#p0ji1unv6thm0dn1gp4t01a1u0g6.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 23:16:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243361#M45249</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-01-13T23:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: caluculed in sas proc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243362#M45250</link>
      <description>&lt;P&gt;The precision of numerical methods is a huge topic in itself that is covered in any introductory numerical analysis course.&lt;/P&gt;
&lt;P&gt;Try Googling&amp;nbsp;&lt;STRONG&gt;rounding error numerical analysis.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 23:28:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243362#M45250</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-01-13T23:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: caluculed in sas proc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243364#M45252</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;The precision of numerical methods is a huge topic in itself that is covered in any introductory numerical analysis course.&lt;/P&gt;
&lt;P&gt;Try Googling&amp;nbsp;&lt;STRONG&gt;rounding error numerical analysis.&lt;/STRONG&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And should also be covered in any serious programming course. &lt;/P&gt;
&lt;P&gt;In a significant number of general programming languages you specifically the precision of storage when declaring variables and incautious assignments can lead to, let us say, &lt;EM&gt;interesting &lt;/EM&gt;results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I remember correctly IBM370 assembler language had something like 16 ways to add numbers. Depending on the specific add and the types of variables you could very easily have a+b not equal to b+a .&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 23:54:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243364#M45252</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-01-13T23:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: caluculed in sas proc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243610#M45323</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use sas 9.2 under unix : AIX 6.1&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 21:52:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243610#M45323</guid>
      <dc:creator>LineMoon</dc:creator>
      <dc:date>2016-01-14T21:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: caluculed in sas proc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243611#M45324</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;Please, can I have an exemple for a+b is not equal to b+a ?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 21:54:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243611#M45324</guid>
      <dc:creator>LineMoon</dc:creator>
      <dc:date>2016-01-14T21:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: caluculed in sas proc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243961#M45419</link>
      <description>&lt;P&gt;Thank you Reeza for your message&lt;/P&gt;
&lt;P&gt;As you say&lt;/P&gt;
&lt;P&gt;&amp;lt;&amp;lt;it can be&amp;nbsp; a computer numerical representation issue&amp;gt;&amp;gt; &lt;/P&gt;
&lt;P&gt;How can I identify that ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 23:26:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243961#M45419</guid>
      <dc:creator>LineMoon</dc:creator>
      <dc:date>2016-01-15T23:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: caluculed in sas proc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243967#M45421</link>
      <description>&lt;P&gt;My OS is unix , AIX 6.1&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jan 2016 00:45:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243967#M45421</guid>
      <dc:creator>LineMoon</dc:creator>
      <dc:date>2016-01-16T00:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: caluculed in sas proc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243976#M45422</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/44053"&gt;@LineMoon&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I identify that ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;You just have.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What are you looking for, the source of the difference is likely numerical precision error. Due you have reasons to believe it might be otherwise? If so, please post your code and some sample data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need examples of numerical precision the documentation has examples in addition to&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt;&amp;nbsp;example&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jan 2016 03:26:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243976#M45422</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-16T03:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: caluculed in sas proc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243989#M45423</link>
      <description>&lt;P&gt;Thank you Reeza.&lt;/P&gt;
&lt;P&gt;My codes is&amp;nbsp; ==&amp;gt; (calculted x)*y as v&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ==&amp;gt; sum(v) as col&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To reply to your question, which identification I am looking for ?&lt;/P&gt;
&lt;P&gt;If i suppose the first rusult (r1) was done by machine A&lt;/P&gt;
&lt;P&gt;and the second&amp;nbsp; rusult (r2) was done by machine B&lt;/P&gt;
&lt;P&gt;As r1 is different from r2. I want to identify the machine to see if the different caused by the machine system ?&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jan 2016 09:47:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/243989#M45423</guid>
      <dc:creator>LineMoon</dc:creator>
      <dc:date>2016-01-16T09:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: caluculed in sas proc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/244011#M45430</link>
      <description>&lt;P&gt;When two floating point calculation results are &lt;EM&gt;supposed&lt;/EM&gt; to be the same but differ by a &lt;EM&gt;small amount&lt;/EM&gt; it is usually assumed that the difference is due to rounding error. With IEEE 8 bytes floating point numbers, that small amount rule often translates into abs((r1-r2)/(r1+r2)) &amp;lt; 1e-12.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jan 2016 19:58:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/244011#M45430</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-01-16T19:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: caluculed in sas proc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/244023#M45438</link>
      <description>&lt;P&gt;That's great PGStats.&lt;/P&gt;
&lt;P&gt;Thank for your exemple.&lt;/P&gt;
&lt;P&gt;is it possible to have an exemple sum_v1 is different from&amp;nbsp; sum_v2&lt;/P&gt;
&lt;P&gt;like this :&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;sum(v) as sum_v1&lt;/P&gt;
&lt;P&gt;from toto&lt;/P&gt;
&lt;P&gt;group by y1,y2,y3;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;sum(v) as sum_v2&lt;/P&gt;
&lt;P&gt;from toto&lt;/P&gt;
&lt;P&gt;group by y1,y2,y3;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2016 01:11:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/caluculed-in-sas-proc/m-p/244023#M45438</guid>
      <dc:creator>LineMoon</dc:creator>
      <dc:date>2016-01-17T01:11:27Z</dc:date>
    </item>
  </channel>
</rss>

