<?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: should have zero decimal places in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/should-have-zero-decimal-places/m-p/115545#M259296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;Linlin wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DN, the OP doesn't want any decimal places.&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;Yes I understand.&amp;nbsp; I was trying to figure out by looking at the code snipit how ROUND with null second argument would have produced a number with two places.&amp;nbsp;&amp;nbsp; Problem is we don't know what the value of the macro variables are.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Nov 2012 19:57:05 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2012-11-02T19:57:05Z</dc:date>
    <item>
      <title>should have zero decimal places</title>
      <link>https://communities.sas.com/t5/SAS-Programming/should-have-zero-decimal-places/m-p/115538#M259289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;please someone help me on this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;In below datset i have used round function, i got the output 98.46%, 54.86%.&amp;nbsp; My requirement&lt;/SPAN&gt; is instead of 98.46% and 54.86% i need only &lt;STRONG&gt;98&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG&gt;54 &lt;/STRONG&gt;only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;data &amp;amp;final_per;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;COL1=round(&amp;amp;per1*&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;100&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;/&amp;amp;per_1)||&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;"%"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;COL2=round(&amp;amp;per2*&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;100&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;/&amp;amp;per_2)||&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;"%"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;COL3=round(&amp;amp;per3*&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;100&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;/&amp;amp;per_3)||&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;"%"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;COL4=round(&amp;amp;per4*&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;100&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;/&amp;amp;per_4)||&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;"%"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;COL5=round(&amp;amp;per5*&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;100&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;/&amp;amp;per_5)||&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;"%"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;COL6=round(&amp;amp;per6*&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;100&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;/&amp;amp;per_6)||&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;"%"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;COL7=round(&amp;amp;per7*&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;100&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;/&amp;amp;per_7)||&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;"%"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;COL8=round(&amp;amp;per8*&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;100&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;/&amp;amp;per_8)||&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;"%"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;COL9=round(&amp;amp;per9*&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;100&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;/&amp;amp;per_9)||&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;"%"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;COL10=round(&amp;amp;per10*&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;100&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;/&amp;amp;per_10)||&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;"%"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;COL11=round(&amp;amp;per11*&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;100&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;/&amp;amp;per_11)||&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;"%"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;COL12=round(&amp;amp;per12*&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;100&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;/&amp;amp;per_12)||&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;"%"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;%mend&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 13:06:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/should-have-zero-decimal-places/m-p/115538#M259289</guid>
      <dc:creator>kiranreddy</dc:creator>
      <dc:date>2012-11-02T13:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: should have zero decimal places</title>
      <link>https://communities.sas.com/t5/SAS-Programming/should-have-zero-decimal-places/m-p/115539#M259290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try replacing &lt;SPAN style="color: #ff0000;"&gt;round&lt;/SPAN&gt; with &lt;SPAN style="color: #ff0000;"&gt;int&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 13:13:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/should-have-zero-decimal-places/m-p/115539#M259290</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-11-02T13:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: should have zero decimal places</title>
      <link>https://communities.sas.com/t5/SAS-Programming/should-have-zero-decimal-places/m-p/115540#M259291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or floor()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 13:20:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/should-have-zero-decimal-places/m-p/115540#M259291</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2012-11-02T13:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: should have zero decimal places</title>
      <link>https://communities.sas.com/t5/SAS-Programming/should-have-zero-decimal-places/m-p/115541#M259292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt; input pct @@;&lt;/P&gt;&lt;P&gt; put=put(pct,percent.);&lt;/P&gt;&lt;P&gt; * use cats() function to avoid note in log about numeric -&amp;gt; character conversion;&lt;/P&gt;&lt;P&gt; round=cats(round(pct*100,1),'%');&lt;/P&gt;&lt;P&gt; int=cats(int(pct*100),'%');&lt;/P&gt;&lt;P&gt; floor=cats(floor(pct*100),'%');&lt;/P&gt;&lt;P&gt; ceil=cats(ceil(pct*100),'%');&lt;/P&gt;&lt;P&gt; put (_all_) (=/);&lt;/P&gt;&lt;P&gt; cards;&lt;/P&gt;&lt;P&gt;.01123 .1235644 .386785654 .588865 .9456 1.4336 2.60000 3.0234 4.500000001&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pct=0.01123&lt;/P&gt;&lt;P&gt;put=1%&lt;/P&gt;&lt;P&gt;round=1%&lt;/P&gt;&lt;P&gt;int=1%&lt;/P&gt;&lt;P&gt;floor=1%&lt;/P&gt;&lt;P&gt;ceil=2%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pct=0.1235644&lt;/P&gt;&lt;P&gt;put=12%&lt;/P&gt;&lt;P&gt;round=12%&lt;/P&gt;&lt;P&gt;int=12%&lt;/P&gt;&lt;P&gt;floor=12%&lt;/P&gt;&lt;P&gt;ceil=13%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pct=0.386785654&lt;/P&gt;&lt;P&gt;put=39%&lt;/P&gt;&lt;P&gt;round=39%&lt;/P&gt;&lt;P&gt;int=38%&lt;/P&gt;&lt;P&gt;floor=38%&lt;/P&gt;&lt;P&gt;ceil=39%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pct=0.588865&lt;/P&gt;&lt;P&gt;put=59%&lt;/P&gt;&lt;P&gt;round=59%&lt;/P&gt;&lt;P&gt;int=58%&lt;/P&gt;&lt;P&gt;floor=58%&lt;/P&gt;&lt;P&gt;ceil=59%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pct=0.9456&lt;/P&gt;&lt;P&gt;put=95%&lt;/P&gt;&lt;P&gt;round=95%&lt;/P&gt;&lt;P&gt;int=94%&lt;/P&gt;&lt;P&gt;floor=94%&lt;/P&gt;&lt;P&gt;ceil=95%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pct=1.4336&lt;/P&gt;&lt;P&gt;put=143%&lt;/P&gt;&lt;P&gt;round=143%&lt;/P&gt;&lt;P&gt;int=143%&lt;/P&gt;&lt;P&gt;floor=143%&lt;/P&gt;&lt;P&gt;ceil=144%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pct=2.6&lt;/P&gt;&lt;P&gt;put=260%&lt;/P&gt;&lt;P&gt;round=260%&lt;/P&gt;&lt;P&gt;int=260%&lt;/P&gt;&lt;P&gt;floor=260%&lt;/P&gt;&lt;P&gt;ceil=260%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pct=3.0234&lt;/P&gt;&lt;P&gt;put=302%&lt;/P&gt;&lt;P&gt;round=302%&lt;/P&gt;&lt;P&gt;int=302%&lt;/P&gt;&lt;P&gt;floor=302%&lt;/P&gt;&lt;P&gt;ceil=303%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pct=4.500000001&lt;/P&gt;&lt;P&gt;put=450%&lt;/P&gt;&lt;P&gt;round=450%&lt;/P&gt;&lt;P&gt;int=450%&lt;/P&gt;&lt;P&gt;floor=450%&lt;/P&gt;&lt;P&gt;ceil=451%&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 13:54:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/should-have-zero-decimal-places/m-p/115541#M259292</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2012-11-02T13:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: should have zero decimal places</title>
      <link>https://communities.sas.com/t5/SAS-Programming/should-have-zero-decimal-places/m-p/115542#M259293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To me it appears the only way you can get the values rounded to two decimal places is for &amp;amp;PER_n to include the rounding units.&amp;nbsp; The thing I don't understand is why you have put you data into macro variables, but I suppose that is a difference discussion.&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt; &lt;/DIV&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; per1=87;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;&lt;STRONG&gt;%let&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;STRONG&gt; per_1=99,.01;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;_null_&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; COL1=round(&amp;amp;per1*&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;100&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;/&amp;amp;per_1)||&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"%"&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;put&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; col1=;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 14:04:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/should-have-zero-decimal-places/m-p/115542#M259293</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2012-11-02T14:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: should have zero decimal places</title>
      <link>https://communities.sas.com/t5/SAS-Programming/should-have-zero-decimal-places/m-p/115543#M259294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DN, the OP doesn't want any decimal places.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 14:21:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/should-have-zero-decimal-places/m-p/115543#M259294</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-11-02T14:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: should have zero decimal places</title>
      <link>https://communities.sas.com/t5/SAS-Programming/should-have-zero-decimal-places/m-p/115544#M259295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;I suggest using an array a percent format or a put with percent format if you really need it.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;data &amp;amp;final_per;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;array col(12) col1-col12;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;array per(12) per1-per12;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;array per_(12) per_1-per_12;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;array ex(12) ex1-ex12;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;do i=1 to 12;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; col(i)=per(i)/per_(i);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ex(i)=put(per(i)/per_(i), percent8.);&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;format col: percent8.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;run;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 14:25:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/should-have-zero-decimal-places/m-p/115544#M259295</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-11-02T14:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: should have zero decimal places</title>
      <link>https://communities.sas.com/t5/SAS-Programming/should-have-zero-decimal-places/m-p/115545#M259296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;Linlin wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DN, the OP doesn't want any decimal places.&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;Yes I understand.&amp;nbsp; I was trying to figure out by looking at the code snipit how ROUND with null second argument would have produced a number with two places.&amp;nbsp;&amp;nbsp; Problem is we don't know what the value of the macro variables are.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 19:57:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/should-have-zero-decimal-places/m-p/115545#M259296</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2012-11-02T19:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: should have zero decimal places</title>
      <link>https://communities.sas.com/t5/SAS-Programming/should-have-zero-decimal-places/m-p/115546#M259297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think we need to see what values the OP is using in those macro variables. As I get integer type values for quite a few ranges of macro variables. For example if &amp;amp;per_1 resolves to something like &lt;STRONG&gt;25, 2&lt;/STRONG&gt; then that is asking round to return 2 decimals.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 22:10:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/should-have-zero-decimal-places/m-p/115546#M259297</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-11-02T22:10:10Z</dc:date>
    </item>
  </channel>
</rss>

