<?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: how to convert number to percent in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-number-to-percent/m-p/610695#M177885</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
picture fmt
low-high='000.99%';
run;

data ex ;
number=102 ;
format number fmt. ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 10 Dec 2019 12:57:42 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2019-12-10T12:57:42Z</dc:date>
    <item>
      <title>how to convert number to percent</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-number-to-percent/m-p/610458#M177771</link>
      <description>&lt;P&gt;data ex ;&lt;/P&gt;
&lt;P&gt;number=102 ;&lt;/P&gt;
&lt;P&gt;format number percent7.2 ;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;value should be come like 102.00% .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried above program it is not working.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 13:30:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-number-to-percent/m-p/610458#M177771</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2019-12-09T13:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert number to percent</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-number-to-percent/m-p/610459#M177772</link>
      <description>&lt;P&gt;Percent values are kept in SAS as relational values, so 102% is stored as 1.02 and displayed as 102.00% by the percent format.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 13:35:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-number-to-percent/m-p/610459#M177772</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-09T13:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert number to percent</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-number-to-percent/m-p/610463#M177774</link>
      <description>data ex;&lt;BR /&gt;	format number percent9.2;&lt;BR /&gt;	number=1.02;&lt;BR /&gt;run;</description>
      <pubDate>Mon, 09 Dec 2019 13:39:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-number-to-percent/m-p/610463#M177774</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2019-12-09T13:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert number to percent</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-number-to-percent/m-p/610496#M177783</link>
      <description>&lt;P&gt;The PERCENT and PERCENTN format multiply by 100 so the value to be displayed should be a proportion. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;35         data _null_;
36            do number=102,-102,1.02,-1.02;
37               put number=percentn12.2;
38               end;
39            run;

number=10200.00%
number=-10200.00%
number=102.00%
number=-102.00%&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Dec 2019 15:44:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-number-to-percent/m-p/610496#M177783</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2019-12-09T15:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert number to percent</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-number-to-percent/m-p/610695#M177885</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
picture fmt
low-high='000.99%';
run;

data ex ;
number=102 ;
format number fmt. ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Dec 2019 12:57:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-number-to-percent/m-p/610695#M177885</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-12-10T12:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert number to percent</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-number-to-percent/m-p/610697#M177887</link>
      <description>&lt;P&gt;You can also add the round() function to avoid truncation&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
picture fmt
low-high='999.99%';
run;

data ex ;
number=102 ;
number2 = round(number,.01);
format number2 fmt.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Dec 2019 12:39:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-number-to-percent/m-p/610697#M177887</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2019-12-10T12:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert number to percent</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-number-to-percent/m-p/610708#M177892</link>
      <description>&lt;P&gt;proc format has such kind of option ROUND .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
picture fmt(round)
low-high='999.99%';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Dec 2019 12:56:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-number-to-percent/m-p/610708#M177892</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-12-10T12:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert number to percent</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-number-to-percent/m-p/610747#M177912</link>
      <description>&lt;P&gt;To convert 102 into 102% you just need to divide it by 100.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 15:23:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-number-to-percent/m-p/610747#M177912</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-12-10T15:23:18Z</dc:date>
    </item>
  </channel>
</rss>

