<?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: Simple calculation problem that involves scientific notation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Simple-calculation-problem-that-involves-scientific-notation/m-p/784290#M250256</link>
    <description>&lt;P&gt;Try format BEST20.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Dec 2021 12:04:04 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2021-12-06T12:04:04Z</dc:date>
    <item>
      <title>Simple calculation problem that involves scientific notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Simple-calculation-problem-that-involves-scientific-notation/m-p/784284#M250252</link>
      <description>&lt;P&gt;I've got two source tables. Both contain a numeric variable called SUM. I'll call them SUM_A and SUM_B.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SUM_A can sometimes be displayed using a scientific notation. SUM_B is always displayed as a plain number.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to add SUM_A to SUM_B. I've made the new variable SUM_TOTAL (format: &lt;STRONG&gt;comma20.&lt;/STRONG&gt;) which uses this expression: &lt;STRONG&gt;SUM_A + SUM_B&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When SUM_A uses a scientific notation, then the end result is always equal to SUM_B. Example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EinarRoed_0-1638790901245.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66433iE62B47CC38B17422/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EinarRoed_0-1638790901245.png" alt="EinarRoed_0-1638790901245.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;How can I make SUM_TOTAL display SUM_A + SUM_B?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 11:47:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Simple-calculation-problem-that-involves-scientific-notation/m-p/784284#M250252</guid>
      <dc:creator>EinarRoed</dc:creator>
      <dc:date>2021-12-06T11:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Simple calculation problem that involves scientific notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Simple-calculation-problem-that-involves-scientific-notation/m-p/784290#M250256</link>
      <description>&lt;P&gt;Try format BEST20.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 12:04:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Simple-calculation-problem-that-involves-scientific-notation/m-p/784290#M250256</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-12-06T12:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Simple calculation problem that involves scientific notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Simple-calculation-problem-that-involves-scientific-notation/m-p/784293#M250259</link>
      <description>&lt;P&gt;And when adding very small numbers to considerably large numbers, you will run into the limits of numeric precision. Keep in mind that only 15 to 16 decimal digits can be stored reliably in 8-byte real.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 12:18:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Simple-calculation-problem-that-involves-scientific-notation/m-p/784293#M250259</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-12-06T12:18:24Z</dc:date>
    </item>
  </channel>
</rss>

