<?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: Problem with the addition of two values (positive and negative) - SAS Data Integration Studio in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-the-addition-of-two-values-positive-and-negative/m-p/620544#M18708</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I was watching a documentary the other day that was about the same reason for Warren Buffet not to trust computers in general &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;According to Mr. Buffet, is there a method that does not contain the possibility of error, and would be preferable?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I would add:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And can be done in an acceptable amount of time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pencil and paper with a properly trained person can do anything a computer can. It just takes &lt;EM&gt;&lt;U&gt;&lt;STRONG&gt;time&lt;/STRONG&gt;&lt;/U&gt;&lt;/EM&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jan 2020 15:39:08 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-01-28T15:39:08Z</dc:date>
    <item>
      <title>Problem with the addition of two values (positive and negative) - SAS Data Integration Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-the-addition-of-two-values-positive-and-negative/m-p/620490#M18704</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table with two columns as listed below:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Col_1&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Col_2&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0.2&lt;/TD&gt;&lt;TD&gt;-0.2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then use an extract field and I create a calculated field "Col_3", which has the following expression&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Col_1 + Col_2&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result of the addition should be equal to zero (0).&lt;/P&gt;&lt;P&gt;Instead, the following value is produced:&amp;nbsp;2.6841454E21&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have already tried to round the value, but nothing is happening.&lt;/P&gt;&lt;P&gt;Furthermore, when I use format and informat (which is something that I do not want, but after trying to troubleshoot the problem), a negative zero value is displayed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any clue about this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Vasileios&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 13:41:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-the-addition-of-two-values-positive-and-negative/m-p/620490#M18704</guid>
      <dc:creator>vfarmak</dc:creator>
      <dc:date>2020-01-28T13:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the addition of two values (positive and negative) - SAS Data Integration Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-the-addition-of-two-values-positive-and-negative/m-p/620492#M18705</link>
      <description>&lt;P&gt;This is roundoff error, and there's really no way to avoid this using computers. The problem is the 0.2 cannot be represented exactly as a string of 0s and 1s (which is how computers represent numbers).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you really want a zero there, you can use the FUZZ() function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if fuzz(col_1+col_2)=0 then col_3=0;
else col_3=col_1+col_2;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Jan 2020 13:48:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-the-addition-of-two-values-positive-and-negative/m-p/620492#M18705</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-01-28T13:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the addition of two values (positive and negative) - SAS Data Integration Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-the-addition-of-two-values-positive-and-negative/m-p/620495#M18706</link>
      <description>&lt;P&gt;I was watching a documentary the other day that was about the same reason for Warren Buffet not to trust computers in general &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 13:58:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-the-addition-of-two-values-positive-and-negative/m-p/620495#M18706</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-01-28T13:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the addition of two values (positive and negative) - SAS Data Integration Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-the-addition-of-two-values-positive-and-negative/m-p/620496#M18707</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I was watching a documentary the other day that was about the same reason for Warren Buffet not to trust computers in general &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;According to Mr. Buffet, is there a method that does not contain the possibility of error, and would be preferable?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 14:01:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-the-addition-of-two-values-positive-and-negative/m-p/620496#M18707</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-01-28T14:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the addition of two values (positive and negative) - SAS Data Integration Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-the-addition-of-two-values-positive-and-negative/m-p/620544#M18708</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I was watching a documentary the other day that was about the same reason for Warren Buffet not to trust computers in general &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;According to Mr. Buffet, is there a method that does not contain the possibility of error, and would be preferable?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I would add:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And can be done in an acceptable amount of time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pencil and paper with a properly trained person can do anything a computer can. It just takes &lt;EM&gt;&lt;U&gt;&lt;STRONG&gt;time&lt;/STRONG&gt;&lt;/U&gt;&lt;/EM&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 15:39:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Problem-with-the-addition-of-two-values-positive-and-negative/m-p/620544#M18708</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-01-28T15:39:08Z</dc:date>
    </item>
  </channel>
</rss>

