<?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 can I set the value of a specified column to the displayed value, ignoring the original significant digit? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-can-I-set-the-value-of-a-specified-column-to-the-displayed/m-p/589822#M79455</link>
    <description>&lt;P&gt;All you have to do is to set the format for the column to something like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;&amp;lt;&amp;lt; Format( "Fixed Dec", 6, 0 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
d2 = dt &amp;lt;&amp;lt; Summary(
	Group( :age ),
	Mean( :height ),
	Freq( "None" ),
	Weight( "None" ),
	Link to original data table( 0 )
);
Column( d2, 3 ) &amp;lt;&amp;lt; Format( "Fixed Dec", 20, 0 );
d2 &amp;lt;&amp;lt; New Column( "new", formula( As Column( 3 ) ) );
d2 &amp;lt;&amp;lt; run formulas;
Column( "new" ) &amp;lt;&amp;lt; deleteFormula &amp;lt;&amp;lt; Format( "Fixed Dec", 6, 0 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1673757456058.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49076iAA81DBAA18F260A2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1673757456058.png" alt="txnelson_0-1673757456058.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;To capture the original format, and use it I found this method to work&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Eval( Parse( "Column(d2,4) &amp;lt;&amp;lt;" || Char( column(dt,4) &amp;lt;&amp;lt; get format ) || ";" ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 15 Jan 2023 05:23:44 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2023-01-15T05:23:44Z</dc:date>
    <item>
      <title>How can I set the value of a specified column to the displayed value, ignoring the original significant digit?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-set-the-value-of-a-specified-column-to-the-displayed/m-p/589812#M79454</link>
      <description>&lt;P&gt;For example, make the actual values of the "new" column in table 2 all integers.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-01-15_09-58-02.png" style="width: 767px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49075iCE3578CBA184B7A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-01-15_09-58-02.png" alt="2023-01-15_09-58-02.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt=Open("$SAMPLE_DATA/Big Class.jmp");
d2=dt&amp;lt;&amp;lt;Summary(Group(:age),Mean(:height),Freq("None"),Weight("None"),Link to original data table(0));
Column(d2,3)&amp;lt;&amp;lt;Format("Fixed Dec",20,0);
d2&amp;lt;&amp;lt;New Column("new",formula(As Column(3)));d2&amp;lt;&amp;lt;run formulas;Column("new")&amp;lt;&amp;lt;deleteFormula;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:43:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-set-the-value-of-a-specified-column-to-the-displayed/m-p/589812#M79454</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2023-06-08T16:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set the value of a specified column to the displayed value, ignoring the original significant digit?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-set-the-value-of-a-specified-column-to-the-displayed/m-p/589822#M79455</link>
      <description>&lt;P&gt;All you have to do is to set the format for the column to something like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;&amp;lt;&amp;lt; Format( "Fixed Dec", 6, 0 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
d2 = dt &amp;lt;&amp;lt; Summary(
	Group( :age ),
	Mean( :height ),
	Freq( "None" ),
	Weight( "None" ),
	Link to original data table( 0 )
);
Column( d2, 3 ) &amp;lt;&amp;lt; Format( "Fixed Dec", 20, 0 );
d2 &amp;lt;&amp;lt; New Column( "new", formula( As Column( 3 ) ) );
d2 &amp;lt;&amp;lt; run formulas;
Column( "new" ) &amp;lt;&amp;lt; deleteFormula &amp;lt;&amp;lt; Format( "Fixed Dec", 6, 0 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1673757456058.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49076iAA81DBAA18F260A2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1673757456058.png" alt="txnelson_0-1673757456058.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;To capture the original format, and use it I found this method to work&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Eval( Parse( "Column(d2,4) &amp;lt;&amp;lt;" || Char( column(dt,4) &amp;lt;&amp;lt; get format ) || ";" ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jan 2023 05:23:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-set-the-value-of-a-specified-column-to-the-displayed/m-p/589822#M79455</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-01-15T05:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set the value of a specified column to the displayed value, ignoring the original significant digit?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-set-the-value-of-a-specified-column-to-the-displayed/m-p/589832#M79456</link>
      <description>&lt;P&gt;It seems that JMP does not have this feature and excel can implement this device.&lt;BR /&gt;The "new" column I added in the example simply checks that the precision of column 3 is an integer.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-01-15_13-45-17.png" style="width: 840px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49077iA10DC88E41ED227C/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-01-15_13-45-17.png" alt="2023-01-15_13-45-17.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jan 2023 05:52:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-set-the-value-of-a-specified-column-to-the-displayed/m-p/589832#M79456</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2023-01-15T05:52:53Z</dc:date>
    </item>
  </channel>
</rss>

