<?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: Round Function without losing trailing zeros in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Round-Function-without-losing-trailing-zeros/m-p/563795#M158090</link>
    <description>Numeric variables don't contain digits.  They only contain values.  If you want to print with one position after the decimal point, apply a format.  For example, if all your numbers are less than 1000, you could add:&lt;BR /&gt;&lt;BR /&gt;format x 5.1;&lt;BR /&gt;&lt;BR /&gt;Once you do that, you can remove the ROUND function</description>
    <pubDate>Wed, 05 Jun 2019 17:41:10 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2019-06-05T17:41:10Z</dc:date>
    <item>
      <title>Round Function without losing trailing zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-Function-without-losing-trailing-zeros/m-p/563787#M158086</link>
      <description>&lt;P&gt;Hi, I am trying to round an average to one decimal place without losing the trailing zero if it rounds to a whole number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example 8.255 --&amp;gt; 8.3&lt;/P&gt;&lt;P&gt;10.01---&amp;gt;10.0 (instead of 10, which my program is currently outputting)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data x;&lt;/P&gt;&lt;P&gt;set y;&lt;/P&gt;&lt;P&gt;avg=round(average,0.1);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you, any help is much appreciated&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 17:33:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-Function-without-losing-trailing-zeros/m-p/563787#M158086</guid>
      <dc:creator>kmardinian</dc:creator>
      <dc:date>2019-06-05T17:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Round Function without losing trailing zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-Function-without-losing-trailing-zeros/m-p/563795#M158090</link>
      <description>Numeric variables don't contain digits.  They only contain values.  If you want to print with one position after the decimal point, apply a format.  For example, if all your numbers are less than 1000, you could add:&lt;BR /&gt;&lt;BR /&gt;format x 5.1;&lt;BR /&gt;&lt;BR /&gt;Once you do that, you can remove the ROUND function</description>
      <pubDate>Wed, 05 Jun 2019 17:41:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-Function-without-losing-trailing-zeros/m-p/563795#M158090</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-06-05T17:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Round Function without losing trailing zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-Function-without-losing-trailing-zeros/m-p/563798#M158091</link>
      <description>&lt;P&gt;Thank you, that worked perfectly!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 17:58:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-Function-without-losing-trailing-zeros/m-p/563798#M158091</guid>
      <dc:creator>kmardinian</dc:creator>
      <dc:date>2019-06-05T17:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Round Function without losing trailing zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-Function-without-losing-trailing-zeros/m-p/563800#M158092</link>
      <description>&lt;P&gt;Is there a way to ensure that this will correctly output to once decimal place in an excel file?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 18:01:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-Function-without-losing-trailing-zeros/m-p/563800#M158092</guid>
      <dc:creator>kmardinian</dc:creator>
      <dc:date>2019-06-05T18:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Round Function without losing trailing zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-Function-without-losing-trailing-zeros/m-p/563803#M158093</link>
      <description>I can't say.  I never exported data to Excel.</description>
      <pubDate>Wed, 05 Jun 2019 18:05:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-Function-without-losing-trailing-zeros/m-p/563803#M158093</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-06-05T18:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Round Function without losing trailing zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-Function-without-losing-trailing-zeros/m-p/563870#M158110</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/139341"&gt;@kmardinian&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is there a way to ensure that this will correctly output to once decimal place in an excel file?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;How are you intending to send data to Excel? Some won't, Proc Export for example, and others basically just set the EXCEL display rule using TAGATTR in one of the report procedures.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 20:03:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-Function-without-losing-trailing-zeros/m-p/563870#M158110</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-06-05T20:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Round Function without losing trailing zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-Function-without-losing-trailing-zeros/m-p/563877#M158112</link>
      <description>&lt;P&gt;I was going to use a proc report ODS&amp;nbsp; statement&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS _ALL_ CLOSE;&lt;BR /&gt;ods excel file = "&amp;amp;outpath.&amp;amp;file..xlsx"&lt;BR /&gt;options ( SHEET_NAME="Report"&lt;BR /&gt;AUTOFILTER = "all"&lt;BR /&gt;EMBEDDED_TITLES ="yes"&lt;BR /&gt;ORIENTATION ="landscape"&lt;BR /&gt;frozen_headers='3'&lt;BR /&gt;absolute_column_width='8, 10, 16, 12'&lt;BR /&gt;) ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc report data=xx&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 20:16:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-Function-without-losing-trailing-zeros/m-p/563877#M158112</guid>
      <dc:creator>kmardinian</dc:creator>
      <dc:date>2019-06-05T20:16:50Z</dc:date>
    </item>
  </channel>
</rss>

