<?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: decimal places in summary table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/decimal-places-in-summary-table/m-p/40319#M23614</link>
    <description>&lt;P&gt;Get Property and Set Property are not the functions to use for the setting and retireving formats. &amp;nbsp;The "Format" and "Get Format" messages are used.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\big class.jmp" );
Show( dt:weight &amp;lt;&amp;lt; get format );
dt:weight &amp;lt;&amp;lt; Format( "Fixed Dec", 12, 6 );
Show( dt:weight &amp;lt;&amp;lt; get format );&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 13 Jun 2017 02:04:57 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2017-06-13T02:04:57Z</dc:date>
    <item>
      <title>decimal places in summary table</title>
      <link>https://community.jmp.com/t5/Discussions/decimal-places-in-summary-table/m-p/40318#M23613</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am summarizing a jmp&amp;nbsp;data table. In the summary table, I want the columns to have decimal places till 4.&lt;/P&gt;&lt;P&gt;However, jmp&amp;nbsp;truncates everything after the decimal point.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="code2.JPG" style="width: 519px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/6434i651C2CFF1F7AE786/image-size/large?v=v2&amp;amp;px=999" role="button" title="code2.JPG" alt="code2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I try to retrieve the format for a column using jsl, it says the format is empty.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt:Name("Median(A)")&amp;lt;&amp;lt; get property("Format");//Empty
dt:Name("Median(A)")&amp;lt;&amp;lt;Set property("Format", {"Scientific",12,2});//Scriptable[] but no change&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Applying format through code doesn't work.&lt;/P&gt;&lt;P&gt;However, if I do this manually through column info dialogue box, by specifying decimal points, it does work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have like 50 columns and I wish to code this decimal format after selecting them.&lt;/P&gt;&lt;P&gt;Any help will be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:13:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/decimal-places-in-summary-table/m-p/40318#M23613</guid>
      <dc:creator>rahulsmils</dc:creator>
      <dc:date>2023-06-10T23:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: decimal places in summary table</title>
      <link>https://community.jmp.com/t5/Discussions/decimal-places-in-summary-table/m-p/40319#M23614</link>
      <description>&lt;P&gt;Get Property and Set Property are not the functions to use for the setting and retireving formats. &amp;nbsp;The "Format" and "Get Format" messages are used.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\big class.jmp" );
Show( dt:weight &amp;lt;&amp;lt; get format );
dt:weight &amp;lt;&amp;lt; Format( "Fixed Dec", 12, 6 );
Show( dt:weight &amp;lt;&amp;lt; get format );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Jun 2017 02:04:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/decimal-places-in-summary-table/m-p/40319#M23614</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-06-13T02:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: decimal places in summary table</title>
      <link>https://community.jmp.com/t5/Discussions/decimal-places-in-summary-table/m-p/40322#M23617</link>
      <description>&lt;P&gt;Perfect, works!&amp;nbsp;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 03:14:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/decimal-places-in-summary-table/m-p/40322#M23617</guid>
      <dc:creator>rahulsmils</dc:creator>
      <dc:date>2017-06-13T03:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: decimal places in summary table</title>
      <link>https://community.jmp.com/t5/Discussions/decimal-places-in-summary-table/m-p/631197#M82949</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;, can you tell how to apply the get format into a new column? for example&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\big class.jmp" );
dtformat= dt:weight &amp;lt;&amp;lt; get format );
dt:weight &amp;lt;&amp;lt; dtformat; (&lt;FONT face="arial black,avant garde" color="#FF0000"&gt;&lt;STRONG&gt;This is not working&lt;/STRONG&gt;&lt;/FONT&gt;)
Show( dt:weight &amp;lt;&amp;lt; get format );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 May 2023 20:05:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/decimal-places-in-summary-table/m-p/631197#M82949</guid>
      <dc:creator>lazzybug</dc:creator>
      <dc:date>2023-05-11T20:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: decimal places in summary table</title>
      <link>https://community.jmp.com/t5/Discussions/decimal-places-in-summary-table/m-p/631224#M82952</link>
      <description>&lt;P&gt;Here is my old school way of handling the issue.&amp;nbsp; I am sure others may have a more straightforward way of handling it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\big class.jmp" );
dtformat= char(dt:weight &amp;lt;&amp;lt; get format) ;
// Show the current format
Show( dt:weight &amp;lt;&amp;lt; get format );
// Change the format and display the change
dt:weight &amp;lt;&amp;lt; format("engineering");
Show( dt:weight &amp;lt;&amp;lt; get format );
// Set the format back to the original format
eval(parse("dt:weight &amp;lt;&amp;lt; " || dtformat || ";" )); 
Show( dt:weight &amp;lt;&amp;lt; get format );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 May 2023 21:18:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/decimal-places-in-summary-table/m-p/631224#M82952</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-05-11T21:18:41Z</dc:date>
    </item>
  </channel>
</rss>

