<?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 does p influence BESTDw.p format? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-does-p-influence-BESTDw-p-format/m-p/922245#M363172</link>
    <description>Thank you, Ballardw. I've looked at this webpage but didn't get what I want, how do you think the relationship between p and the number of decimal places should be described?</description>
    <pubDate>Fri, 29 Mar 2024 09:28:41 GMT</pubDate>
    <dc:creator>whymath</dc:creator>
    <dc:date>2024-03-29T09:28:41Z</dc:date>
    <item>
      <title>How does p influence BESTDw.p format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-p-influence-BESTDw-p-format/m-p/922242#M363170</link>
      <description>&lt;P&gt;When I submit this program:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
  input x;
  if _n_=1 then put 11*'-' '1' 11*'-' '2' 11*'-' '3' 11*'-' '4';
  put x bestd12.1 x bestd12.2 x bestd12.3 x bestd12.4;
  cards;
  12.1
  12
  12.12
  12.123
  12.1234
  ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The Log window shows:&lt;/P&gt;
&lt;PRE&gt;-----------1-----------2-----------3-----------4
    12.10000    12.10000   12.100000   12.100000
          12          12          12          12
    12.12000    12.12000   12.120000   12.120000
    12.12300    12.12300   12.123000   12.123000
    12.12340    12.12340   12.123400   12.123400&lt;/PRE&gt;
&lt;P&gt;Why bestd12.2 just behave all the same with bestd12.1? And also&amp;nbsp;bestd12.3 and&amp;nbsp;bestd12.4. How does the p influence BESTDw.p format?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 08:14:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-p-influence-BESTDw-p-format/m-p/922242#M363170</guid>
      <dc:creator>whymath</dc:creator>
      <dc:date>2024-03-29T08:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: How does p influence BESTDw.p format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-p-influence-BESTDw-p-format/m-p/922244#M363171</link>
      <description>&lt;P&gt;I think this from the online description of the format may help:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="xis-refDictEntry"&gt;
&lt;DIV class="xis-details"&gt;
&lt;DIV id="p1m2qgqu2hi6aqn1sp62qo4bizv1" class="xis-topicContent"&gt;
&lt;DIV id="n0m7ap8n89hkwwn10kjmisq1ol4g" class="xis-paragraph"&gt;The BESTD&lt;SPAN class="xis-userSuppliedValue"&gt;w.p&lt;/SPAN&gt; format writes numbers so that the decimal point aligns in groups of values with similar magnitude. Integers are printed without a decimal point. Larger values of &lt;SPAN class="xis-userSuppliedValue"&gt;p&lt;/SPAN&gt; print the data values with more precision and potentially more shifts in the decimal point alignment. Smaller values of &lt;SPAN class="xis-userSuppliedValue"&gt;p&lt;/SPAN&gt; print the data values with less precision and a greater chance of decimal point alignment.&lt;/DIV&gt;
&lt;DIV id="n1gmglseetndb2n10joclvg0gfrl" class="xis-paragraph"&gt;The format chooses the number of decimal places to print for ranges of values, even when the underlying values can be represented with fewer decimal places.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Remember that part of the purpose of this format is to align decimals. So the p isn't a fix display as in format like F8.2 but makes attempts to display similar ranges of values with the same decimal point location and number of displayed decimal points.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you really want to control the number of displayed decimal points then use formats other than BEST or BESTD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 09:16:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-p-influence-BESTDw-p-format/m-p/922244#M363171</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-03-29T09:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: How does p influence BESTDw.p format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-p-influence-BESTDw-p-format/m-p/922245#M363172</link>
      <description>Thank you, Ballardw. I've looked at this webpage but didn't get what I want, how do you think the relationship between p and the number of decimal places should be described?</description>
      <pubDate>Fri, 29 Mar 2024 09:28:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-p-influence-BESTDw-p-format/m-p/922245#M363172</guid>
      <dc:creator>whymath</dc:creator>
      <dc:date>2024-03-29T09:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: How does p influence BESTDw.p format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-p-influence-BESTDw-p-format/m-p/922257#M363174</link>
      <description>&lt;P&gt;Since I can't tell what you "want" I have no idea how to expand on what is in the documentation.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 11:34:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-p-influence-BESTDw-p-format/m-p/922257#M363174</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-03-29T11:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: How does p influence BESTDw.p format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-p-influence-BESTDw-p-format/m-p/922258#M363175</link>
      <description>&lt;P&gt;Add numbers to your dataset which are larger (&amp;gt;100), smaller (&amp;lt;0) and have more significant digits to see possible effects.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 11:44:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-p-influence-BESTDw-p-format/m-p/922258#M363175</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-03-29T11:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: How does p influence BESTDw.p format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-p-influence-BESTDw-p-format/m-p/922261#M363176</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/270406"&gt;@whymath&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I see what you are asking about.&lt;BR /&gt;BESTDw.p simply aligns the digit as pointed by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt; .&lt;BR /&gt;BESTDw.p documentation describes p as precision, but I don't see it doing that. What one would have expected is to\hat the format would round off the value at the pth position from decimal. (&lt;A href="https://simple.wikipedia.org/wiki/Arithmetic_precision" target="_blank"&gt;https://simple.wikipedia.org/wiki/Arithmetic_precision&lt;/A&gt; ).&lt;BR /&gt;May be somebody from SAS can elaborate on this.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 12:42:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-p-influence-BESTDw-p-format/m-p/922261#M363176</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2024-03-29T12:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: How does p influence BESTDw.p format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-p-influence-BESTDw-p-format/m-p/922399#M363228</link>
      <description>I'm looking for the functional relationship between p and the number of decimal places being displayed.</description>
      <pubDate>Mon, 01 Apr 2024 02:07:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-p-influence-BESTDw-p-format/m-p/922399#M363228</guid>
      <dc:creator>whymath</dc:creator>
      <dc:date>2024-04-01T02:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: How does p influence BESTDw.p format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-p-influence-BESTDw-p-format/m-p/922400#M363229</link>
      <description>It's great that you understand me, still on the way to solve this.</description>
      <pubDate>Mon, 01 Apr 2024 02:09:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-p-influence-BESTDw-p-format/m-p/922400#M363229</guid>
      <dc:creator>whymath</dc:creator>
      <dc:date>2024-04-01T02:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: How does p influence BESTDw.p format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-p-influence-BESTDw-p-format/m-p/922421#M363233</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/270406"&gt;@whymath&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;It's great that you understand me, still on the way to solve this.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What would a "solution" look like?&lt;/P&gt;
&lt;P&gt;I am afraid that you may be asking for some proprietary code from SAS for an exhaustive answer as I'm moderately certain that writing proc format code isn't how this format is defined.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BESTD is basically a guessing format based on the ranges of values of variables, and quite likely numbers of values involved. You might have a "solution" for one data set, add a single value and the solution gets thrown out the window because new groups of decimals are displayed.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 05:45:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-p-influence-BESTDw-p-format/m-p/922421#M363233</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-04-01T05:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: How does p influence BESTDw.p format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-p-influence-BESTDw-p-format/m-p/922434#M363235</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/270406"&gt;@whymath&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Given the way&amp;nbsp; this format work, in my opinion, the appropriate approach would be to request SAS for the features as you expect it to have at&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Product-Suggestions/idb-p/product-suggestions" target="_blank"&gt;SAS Product Suggestions - SAS Support Communities&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 11:49:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-p-influence-BESTDw-p-format/m-p/922434#M363235</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2024-04-01T11:49:56Z</dc:date>
    </item>
  </channel>
</rss>

