<?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 converting -0.00 to 0.00 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/converting-0-00-to-0-00/m-p/421686#M103716</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to get a 0.00 from this value -1.42109E-14.&lt;/P&gt;&lt;P&gt;With best32. I have -0.00&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Cordially&lt;/P&gt;</description>
    <pubDate>Fri, 15 Dec 2017 19:31:52 GMT</pubDate>
    <dc:creator>mansour_ibrahim</dc:creator>
    <dc:date>2017-12-15T19:31:52Z</dc:date>
    <item>
      <title>converting -0.00 to 0.00</title>
      <link>https://communities.sas.com/t5/SAS-Programming/converting-0-00-to-0-00/m-p/421686#M103716</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to get a 0.00 from this value -1.42109E-14.&lt;/P&gt;&lt;P&gt;With best32. I have -0.00&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Cordially&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2017 19:31:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/converting-0-00-to-0-00/m-p/421686#M103716</guid>
      <dc:creator>mansour_ibrahim</dc:creator>
      <dc:date>2017-12-15T19:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: converting -0.00 to 0.00</title>
      <link>https://communities.sas.com/t5/SAS-Programming/converting-0-00-to-0-00/m-p/421699#M103717</link>
      <description>&lt;P&gt;This is a nuance of floating point representation.&amp;nbsp; See &lt;A href="https://blogs.sas.com/content/sasdummy/2011/12/14/all-about-negative-zero/" target="_self"&gt;What's the difference between 0 and -0?&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might consider using the ROUND function, or multiplying the value by 1.0 might do the trick.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2017 19:59:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/converting-0-00-to-0-00/m-p/421699#M103717</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-12-15T19:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: converting -0.00 to 0.00</title>
      <link>https://communities.sas.com/t5/SAS-Programming/converting-0-00-to-0-00/m-p/421700#M103718</link>
      <description>&lt;P&gt;This would be one way to display values near zero as zero.&amp;nbsp; No doubt others will chime in with other ways.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
   value myfmt -1e-12 - 1e-12 = '                            0.00';
run;

data x;
   do i = -1 to 1 by 0.1;
      j = i;
      output;
   end;
   format i best32. j myfmt32.;
 run;
   
proc print; run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Dec 2017 20:02:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/converting-0-00-to-0-00/m-p/421700#M103718</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-12-15T20:02:28Z</dc:date>
    </item>
  </channel>
</rss>

