<?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: a 101 question in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/a-101-question/m-p/704808#M216091</link>
    <description>&lt;P&gt;You can make it work using&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
    set A;
    where round(v_rho,0.1)=0.8;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The issue is related to rounding and &lt;A href="https://en.wikipedia.org/wiki/Arbitrary-precision_arithmetic#Implementation_issues" target="_self"&gt;the way computers internally store numeric values&lt;/A&gt;, specifically floating points.&lt;/P&gt;
&lt;P&gt;See this thread for more info:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Programming/I-meet-with-a-problem-of-data-values-in-do-loops/m-p/690809#M210183" target="_blank"&gt;Solved: Re: I meet with a problem of data values in do loo... - SAS Support Communities&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Dec 2020 17:02:01 GMT</pubDate>
    <dc:creator>vellad</dc:creator>
    <dc:date>2020-12-09T17:02:01Z</dc:date>
    <item>
      <title>a 101 question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-101-question/m-p/704799#M216089</link>
      <description>&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a super simple question but could not figure out by my own, see below codes. Why I cannot get any record in data set "test"? This is so weird.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data A;&lt;BR /&gt;do v_gamma=0.7668,1,1.5,2,2.5,3,3.2749;&lt;BR /&gt;do v_rho=0 to 1 by 0.1;&lt;BR /&gt;do v_deltap=2,3,4,5;&lt;BR /&gt;do v_deltas=1,2,3,4,5;&lt;BR /&gt;v_tp1=0.5;&lt;BR /&gt;v_ts1=0.5;&lt;BR /&gt;v_alpha=0.05;&lt;BR /&gt;v_eps=1E-11;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data test;&lt;BR /&gt;set A;&lt;BR /&gt;where v_rho=0.8;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 16:52:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-101-question/m-p/704799#M216089</guid>
      <dc:creator>runningneptune</dc:creator>
      <dc:date>2020-12-09T16:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: a 101 question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-101-question/m-p/704806#M216090</link>
      <description>&lt;P&gt;see this paper:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/resources/papers/dealing-with-numeric-representation-error-in-sas-applications.pdf" target="_blank" rel="noopener"&gt;https://support.sas.com/resources/papers/dealing-with-numeric-representation-error-in-sas-applications.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
set A;
where round(v_rho,0.1)=0.8;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Dec 2020 17:00:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-101-question/m-p/704806#M216090</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2020-12-09T17:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: a 101 question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-101-question/m-p/704808#M216091</link>
      <description>&lt;P&gt;You can make it work using&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
    set A;
    where round(v_rho,0.1)=0.8;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The issue is related to rounding and &lt;A href="https://en.wikipedia.org/wiki/Arbitrary-precision_arithmetic#Implementation_issues" target="_self"&gt;the way computers internally store numeric values&lt;/A&gt;, specifically floating points.&lt;/P&gt;
&lt;P&gt;See this thread for more info:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Programming/I-meet-with-a-problem-of-data-values-in-do-loops/m-p/690809#M210183" target="_blank"&gt;Solved: Re: I meet with a problem of data values in do loo... - SAS Support Communities&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 17:02:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-101-question/m-p/704808#M216091</guid>
      <dc:creator>vellad</dc:creator>
      <dc:date>2020-12-09T17:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: a 101 question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-101-question/m-p/704831#M216100</link>
      <description>Thank you mate! I learn something new.</description>
      <pubDate>Wed, 09 Dec 2020 18:38:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-101-question/m-p/704831#M216100</guid>
      <dc:creator>runningneptune</dc:creator>
      <dc:date>2020-12-09T18:38:39Z</dc:date>
    </item>
  </channel>
</rss>

