<?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: proc freq: 100% with format percent10.1 in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-freq-100-with-format-percent10-1/m-p/98126#M27633</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. The problem is that you are representing the percentages using discrete mathematics.&amp;nbsp; When you round to one decimal place the chances of the rounded values not adding to exact 100% is greater than when you using 2 or 3 decimal places.&amp;nbsp; But even the full 17 or 18 digit precision that SAS uses to store floating point numbers could still lead to situations where the sum of the stored values does not add to 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just add a footnote to your report for anyone that has trouble this this concept.&lt;/P&gt;&lt;P&gt;NOTE: Percentages might not sum to 100 due to rounding.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Feb 2013 15:14:29 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2013-02-05T15:14:29Z</dc:date>
    <item>
      <title>proc freq: 100% with format percent10.1</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-freq-100-with-format-percent10-1/m-p/98118#M27625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please take a look at the resulting table work.cylinders_make of this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data=sashelp.cars;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format percent commax10.1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by make;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tables cylinders / out=work.cylinders_make;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And have a look at make = Chevrolet. There are 3 oberservations for it. If you add all three you get slightly less than 100 &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; This is due to the format on the variable percent.&lt;/P&gt;&lt;P&gt;Does anybody know if I get get only one number after the decimal point for the variable percent in the proc freq without this rounding problem? In the proc means statement ther's the option maxdec. But it is not valid for prof freq.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes&lt;/P&gt;&lt;P&gt;Eva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 13:54:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-freq-100-with-format-percent10-1/m-p/98118#M27625</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2013-02-05T13:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq: 100% with format percent10.1</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-freq-100-with-format-percent10-1/m-p/98119#M27626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what the question is?&amp;nbsp; Are you trying to invent a new form of mathematics where 100*7/27 does not round to 25.9 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 14:13:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-freq-100-with-format-percent10-1/m-p/98119#M27626</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-02-05T14:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq: 100% with format percent10.1</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-freq-100-with-format-percent10-1/m-p/98120#M27627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think your question should be an issue.&amp;nbsp; When rounding, you will not always add up to 100%.&amp;nbsp; If you truly want to get 100% by adding up your displayed values, you would have to take it out an extra decimal place or two.&amp;nbsp; But most people would recognize that there is a rounding situation going on there.&amp;nbsp; No one will add it up and say, "Wait a second!&amp;nbsp; These values only account for 99.9% of the data.&amp;nbsp; Where is the other 0.1%?"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This reminds me of the Modern Family quote: "Success is 1% inspiration, 98% perspiration, and 2% attention to detail."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 14:43:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-freq-100-with-format-percent10-1/m-p/98120#M27627</guid>
      <dc:creator>djbateman</dc:creator>
      <dc:date>2013-02-05T14:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq: 100% with format percent10.1</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-freq-100-with-format-percent10-1/m-p/98121#M27628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, look at Chevrolet:&lt;/P&gt;&lt;P&gt;25,9 + 48,1 + 25,9 = 99,9 (not 100)&lt;/P&gt;&lt;P&gt;Without the format statement in the above code I get for Chevrolet&lt;/P&gt;&lt;P&gt;25,92 + 48,14 + 25,92 = 100&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 14:44:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-freq-100-with-format-percent10-1/m-p/98121#M27628</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2013-02-05T14:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq: 100% with format percent10.1</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-freq-100-with-format-percent10-1/m-p/98122#M27629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear djbateman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought the same yet I got exactly that reaction: it doesn't sum up to 100 &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Eva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 14:46:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-freq-100-with-format-percent10-1/m-p/98122#M27629</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2013-02-05T14:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq: 100% with format percent10.1</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-freq-100-with-format-percent10-1/m-p/98123#M27630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what my comment below was about.&amp;nbsp; If you want it to add to 100, then you have to take it out an extra decimal place or two (sometimes even three or four).&amp;nbsp; When rounding, your decimal place will either go up or stay the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;29.8% + 70.2% = 100.0%.&amp;nbsp; Yea!&amp;nbsp; This is what we want!&lt;/P&gt;&lt;P&gt;If we round to whole integers, the 29 will change to a 30, but the 70 will remain the same.&amp;nbsp; Thus, 30% + 70% = 100%. Yea!&amp;nbsp; We still got what we want!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, let's try a different example where both numbers will go up.&lt;/P&gt;&lt;P&gt;29.5% + 70.5% = 100.0%.&amp;nbsp; Yea!&amp;nbsp; This is again what we want!&lt;/P&gt;&lt;P&gt;Now, let's round to whole integers again.&amp;nbsp; Now the 29 becomes a 30, and the 70 becomes a 71.&amp;nbsp; So, 30% + 71% = 101%.&amp;nbsp; Oh no!&amp;nbsp; This is not true!&amp;nbsp; (Was that your thought?)&amp;nbsp; It is still true because you now estimated instead showing an exact result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe estimation is where your question arises.&amp;nbsp; When you estimate, you will get close, but not always exact.&amp;nbsp; Rounding is a way of estimating.&amp;nbsp; No one wants to see a long stretch of decimal places, so we round to make the display of values look prettier, and we understand that there will be a little variation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, are you okay with it not showing up as exactly 100%, or do you have people viewing your results that do not understand rounding?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 14:56:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-freq-100-with-format-percent10-1/m-p/98123#M27630</guid>
      <dc:creator>djbateman</dc:creator>
      <dc:date>2013-02-05T14:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq: 100% with format percent10.1</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-freq-100-with-format-percent10-1/m-p/98124#M27631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way, &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;25,92 + 48,14 + 25,92 DOES NOT EQUAL 100.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;25,92 + 48,14 + 25,92 = 98.98.&amp;nbsp; Still not exactly 100, but closer than 99.9.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 14:58:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-freq-100-with-format-percent10-1/m-p/98124#M27631</guid>
      <dc:creator>djbateman</dc:creator>
      <dc:date>2013-02-05T14:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq: 100% with format percent10.1</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-freq-100-with-format-percent10-1/m-p/98125#M27632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess the basic problem here is that the format is executed after the calculation of proc freq. And in proc freq the variable percent comes with two numbers after the decimal point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if proc freq could be persuaded using only one number after the decimal point I wouldn't need the format and therefore no rounding would occur.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 14:59:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-freq-100-with-format-percent10-1/m-p/98125#M27632</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2013-02-05T14:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq: 100% with format percent10.1</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-freq-100-with-format-percent10-1/m-p/98126#M27633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. The problem is that you are representing the percentages using discrete mathematics.&amp;nbsp; When you round to one decimal place the chances of the rounded values not adding to exact 100% is greater than when you using 2 or 3 decimal places.&amp;nbsp; But even the full 17 or 18 digit precision that SAS uses to store floating point numbers could still lead to situations where the sum of the stored values does not add to 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just add a footnote to your report for anyone that has trouble this this concept.&lt;/P&gt;&lt;P&gt;NOTE: Percentages might not sum to 100 due to rounding.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 15:14:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-freq-100-with-format-percent10-1/m-p/98126#M27633</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-02-05T15:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq: 100% with format percent10.1</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-freq-100-with-format-percent10-1/m-p/98127#M27634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see, so PROC FREQ is reporting 25.92 when it should be reporting 25.93 (since the true result is 25.9259259...).&amp;nbsp; Sorry for my little rampage above.&amp;nbsp; However, if it properly rounded and then summed up the percents, you would still not get 100% because 25.9259259 would round to 25.93 (you have two of these values) and 48.1481481 would round to 48.15.&amp;nbsp; Thus, 25.93 + 48.15 + 25.93 = 100.01.&amp;nbsp; This is not what SAS output is showing.&amp;nbsp; It looks like SAS is not doing individual percents and then adding up those percents.&amp;nbsp; Rather, it is taking the cumulative frequencies divided by the total.&amp;nbsp; See if the table below helps at all!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#000000&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;}" style="border: 1px solid #000000; width: 38%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px; font-family: arial, helvetica, sans-serif; width: 5%;"&gt;&lt;STRONG&gt;Frequency&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px; font-family: arial, helvetica, sans-serif; width: 6%;"&gt;&lt;STRONG&gt;Cumulative Frequency&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px; font-family: arial, helvetica, sans-serif; width: 4%;"&gt;&lt;STRONG&gt;Percent&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px; font-family: arial, helvetica, sans-serif; width: 43%;"&gt;&lt;STRONG&gt;Cumulative Percent (by Hand)&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px; font-family: arial, helvetica, sans-serif; width: 70%;"&gt;&lt;STRONG&gt;Cumulative Percent (SAS Method)&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; color: #000000; text-align: left; background-color: transparent;"&gt;7&lt;/TD&gt;&lt;TD style="padding: 2px; color: #000000; text-align: left; background-color: transparent;"&gt;7&lt;/TD&gt;&lt;TD style="padding: 2px; color: #000000; text-align: left; background-color: transparent;"&gt;25.93&lt;/TD&gt;&lt;TD style="padding: 2px; color: #000000; text-align: left; background-color: transparent;"&gt;25.93 (7/27)&lt;/TD&gt;&lt;TD style="padding: 2px; color: #000000; text-align: left; background-color: transparent;"&gt;25.93 (7/27)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; color: #000000; text-align: left; background-color: transparent;"&gt;13&lt;/TD&gt;&lt;TD style="padding: 2px; color: #000000; text-align: left; background-color: transparent;"&gt;20&lt;/TD&gt;&lt;TD style="padding: 2px; color: #000000; text-align: left; background-color: transparent;"&gt;48.15&lt;/TD&gt;&lt;TD style="padding: 2px; color: #000000; text-align: left; background-color: transparent;"&gt;74.08 (7/27 + 13/27)&lt;/TD&gt;&lt;TD style="padding: 2px; color: #000000; text-align: left; background-color: transparent;"&gt;74.07 (20/27)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; color: #000000; text-align: left; background-color: transparent;"&gt;7&lt;/TD&gt;&lt;TD style="padding: 2px; color: #000000; text-align: left; background-color: transparent;"&gt;27&lt;/TD&gt;&lt;TD style="padding: 2px; color: #000000; text-align: left; background-color: transparent;"&gt;25.93&lt;/TD&gt;&lt;TD style="padding: 2px; color: #000000; text-align: left; background-color: transparent;"&gt;100.01 (7/27 + 13/27 + 7/27)&lt;/TD&gt;&lt;TD style="padding: 2px; color: #000000; text-align: left; background-color: transparent;"&gt;100.00 (27/27)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 15:18:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-freq-100-with-format-percent10-1/m-p/98127#M27634</guid>
      <dc:creator>djbateman</dc:creator>
      <dc:date>2013-02-05T15:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq: 100% with format percent10.1</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-freq-100-with-format-percent10-1/m-p/98128#M27635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I see. What do you think about the maxdec option in the proc means statement in this light?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 15:28:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-freq-100-with-format-percent10-1/m-p/98128#M27635</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2013-02-05T15:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq: 100% with format percent10.1</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-freq-100-with-format-percent10-1/m-p/98129#M27636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you may also have a problem between rounding the value and using a format.&amp;nbsp; When you use a format of 9.2 for the number no rounding takes place and the value on the output is truncated.&amp;nbsp; This can cause problems when manually summing a column and it does not total 100%. &lt;/P&gt;&lt;P&gt;Rounding the value into a variable and then printing it using the same format will introduce a rounding error and the sum may still not be 100%.&lt;/P&gt;&lt;P&gt;I usually generate the sum as a data line before printing so that I can insure that it will total 100% even if the individual values will not sum correctly, then print a footnote regarding rounding on the report.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 15:29:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-freq-100-with-format-percent10-1/m-p/98129#M27636</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2013-02-05T15:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq: 100% with format percent10.1</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-freq-100-with-format-percent10-1/m-p/98130#M27637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Your FORMAT statement is being ignored by PROC FREQ -- so that is a non-issue. The only way to alter a format with PROC FREQ is to change the TABLE template. (&lt;A href="http://support.sas.com/kb/23/349.html" title="http://support.sas.com/kb/23/349.html"&gt;23349 - Modify the default format displayed with PROC FREQ&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You can prove this to yourself, that the format is being ignored. Here's Chevrolet both with and without the format...same results. Next, if I go out 5 decimal places (with TABULATE) and "add up" the individual numbers on my calculator, I get 100.00001; however, as Tom pointed out, SAS does not "add up" the percent numbers. Never. The formula for calculating a percent is &lt;STRONG&gt;100*number in cell divided by denominator = percent&lt;/STRONG&gt; -- so as he said: 100*7 / 27 = 25.92593 and the "grand total" of 27 is calculated internally as 100*27 / 27 which will always be 100 -- your "individual cell percents" are not "added up" by SAS. So, your 27 cars are not 99.99 percent of the total, the 27 cars are 100% of the total, no matter what the "individual percents" add up to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Here's some code comparing FREQ and TABULATE and showing the same individual percents and the same grand total percent. Note that 25.92593 IS rounded by TABULATE to 25.93.&amp;nbsp; However, 100*13 / 27 = 48.148148148, which SAS is rounding to 48.1 -- if you want some definitive answer on the rounding algorithm and why that number got rounded to 48.1, by both FREQ and TABULATE instead of 48.2, you'd have to open a track with Tech Support. To me it is a moot point, since the 27 total cars are 100% and not 99.99%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc sort data=sashelp.cars out=cars;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; by make;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; where make in ('Chevrolet');&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc freq data=cars;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; title '1) PROC FREQ without fmt statement';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; by make;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; tables cylinders;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc freq data=cars;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;title '2) PROC FREQ with fmt statement';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; format percent commax10.1;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by make;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tables cylinders;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc tabulate data=cars;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;title '3) PROC TABULATE default fmt';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;by make;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;class cylinders;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;table cylinders all,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; n pctn;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc tabulate data=cars;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;title '4) PROC TABULATE 10.1 fmt';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;by make;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;class cylinders;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;table cylinders all,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; n*f=commax10. pctn*f=commax10.1;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc tabulate data=cars;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;title '5) PROC TABULATE diff format 5 dec places';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;by make;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;class cylinders;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;table cylinders all,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; n*f=commax10. pctn*f=commax14.5;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 15:50:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-freq-100-with-format-percent10-1/m-p/98130#M27637</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-02-05T15:50:47Z</dc:date>
    </item>
  </channel>
</rss>

