<?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: PERCENT FORMAT that will yield &amp;quot;0.x&amp;quot; if less than 1% in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PERCENT-FORMAT-that-will-yield-quot-0-x-quot-if-less-than-1/m-p/587335#M167753</link>
    <description>&lt;P&gt;PERCENT7.2 ought to give you the desired results&lt;/P&gt;</description>
    <pubDate>Mon, 09 Sep 2019 18:43:10 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-09-09T18:43:10Z</dc:date>
    <item>
      <title>PERCENT FORMAT that will yield "0.x" if less than 1%</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PERCENT-FORMAT-that-will-yield-quot-0-x-quot-if-less-than-1/m-p/587334#M167752</link>
      <description>&lt;P&gt;Is there a format that will make sure that all output has the same number of digits to the right of the decimal point regardless of whether the value is less than 1%?&amp;nbsp;&amp;nbsp;t seems to me that there should be something like a PERCENTZ.d format that will output a 0 to the left of the decimal point when appropriate.&amp;nbsp; Is there such a format?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example: a column of values output using the PERCENT7.3 format:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;7.44% &lt;BR /&gt;&amp;nbsp; &amp;nbsp;3.36% &lt;BR /&gt;&amp;nbsp; &amp;nbsp;.242%&lt;/P&gt;
&lt;P&gt;What I want:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;7.44% &lt;BR /&gt;&amp;nbsp; &amp;nbsp;3.36% &lt;BR /&gt;&amp;nbsp; &amp;nbsp;0.24%&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 18:41:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PERCENT-FORMAT-that-will-yield-quot-0-x-quot-if-less-than-1/m-p/587334#M167752</guid>
      <dc:creator>bbenbaruch</dc:creator>
      <dc:date>2019-09-09T18:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: PERCENT FORMAT that will yield "0.x" if less than 1%</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PERCENT-FORMAT-that-will-yield-quot-0-x-quot-if-less-than-1/m-p/587335#M167753</link>
      <description>&lt;P&gt;PERCENT7.2 ought to give you the desired results&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 18:43:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PERCENT-FORMAT-that-will-yield-quot-0-x-quot-if-less-than-1/m-p/587335#M167753</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-09T18:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: PERCENT FORMAT that will yield "0.x" if less than 1%</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PERCENT-FORMAT-that-will-yield-quot-0-x-quot-if-less-than-1/m-p/587336#M167754</link>
      <description>Your width is too small. You've set it to 7 total but it's not enough to hold all the values so the zero is truncated. Make the width larger to avoid the issue. &lt;BR /&gt;&lt;BR /&gt;Percent12.3 works with original data. &lt;BR /&gt;&lt;BR /&gt;If you have any chance of having negative values you want to make it wider as well. &lt;BR /&gt;&lt;BR /&gt;I would recommend using percent12.2 as your format. That's usually wide enough to avoid most issues.</description>
      <pubDate>Mon, 09 Sep 2019 18:49:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PERCENT-FORMAT-that-will-yield-quot-0-x-quot-if-less-than-1/m-p/587336#M167754</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-09-09T18:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: PERCENT FORMAT that will yield "0.x" if less than 1%</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PERCENT-FORMAT-that-will-yield-quot-0-x-quot-if-less-than-1/m-p/587347#M167756</link>
      <description>&lt;P&gt;Thanks.&amp;nbsp; I feel silly because I forgot the difference between PERCENTw.d and PERCENTNw.d.&amp;nbsp; (The difference is in how negative percentages are output.&amp;nbsp; PERCENTw.d outputs them in parentheses requiring accounting for 2 additional characters in the output.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PERCENTN7.2 will also work -- when I know that all of my percentages will be between 99.99% and -99.99%.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 19:37:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PERCENT-FORMAT-that-will-yield-quot-0-x-quot-if-less-than-1/m-p/587347#M167756</guid>
      <dc:creator>bbenbaruch</dc:creator>
      <dc:date>2019-09-09T19:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: PERCENT FORMAT that will yield "0.x" if less than 1%</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PERCENT-FORMAT-that-will-yield-quot-0-x-quot-if-less-than-1/m-p/587492#M167815</link>
      <description>&lt;P&gt;For a summary of the PERCENTw.d and PERCENTNw.d formats and a discussion of field widths, see &lt;A href="https://blogs.sas.com/content/iml/2015/08/10/percent-formats.html" target="_self"&gt;"Those tricky PERCENT formats."&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 13:03:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PERCENT-FORMAT-that-will-yield-quot-0-x-quot-if-less-than-1/m-p/587492#M167815</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-09-10T13:03:06Z</dc:date>
    </item>
  </channel>
</rss>

