<?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: Formatting is not accepted (col &amp;lt;&amp;lt; Format( &amp;quot;Fixed Dec&amp;quot;, 10, 2 )) and still getting 3 decimal point as the output. What am I doing wrong? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Formatting-is-not-accepted-col-lt-lt-Format-quot-Fixed-Dec-quot/m-p/632514#M83091</link>
    <description>&lt;P&gt;Hi Aziza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would guess that formatting doesn't change the underlying value but just how the value is diplayed in the data table. Because in the data table it actually shows 0.01 for your example.&lt;/P&gt;&lt;P&gt;If you want to access less decimal places in your code, you probably should round your value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 May 2023 10:12:22 GMT</pubDate>
    <dc:creator>Anja_W</dc:creator>
    <dc:date>2023-05-17T10:12:22Z</dc:date>
    <item>
      <title>Formatting is not accepted (col &lt;&lt; Format( "Fixed Dec", 10, 2 )) and still getting 3 decimal point as the output. What am I doing wrong?</title>
      <link>https://community.jmp.com/t5/Discussions/Formatting-is-not-accepted-col-lt-lt-Format-quot-Fixed-Dec-quot/m-p/632509#M83090</link>
      <description>&lt;DIV&gt;Hello dear community, I am assigning the two decimal point format to a column but when i extract this value it is still showing 3 decimal points. I would appricate your input. Here is an example:&lt;/DIV&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Open Data Table: Antibiotic MICs.jmp
// → Data Table( "Antibiotic MICs" )
Open( "$SAMPLE_DATA/Antibiotic MICs.jmp" );

// Standardize column attributes-The main idea is the format= Fixed Dec, 10, 2-show two decimal points
Local( {old dt = Current Data Table()},
Current Data Table( Data Table( "Antibiotic MICs" ) );
For Each( {col, index}, {:streptomycin, :neomycin},
col &amp;lt;&amp;lt; Format( "Fixed Dec", 10, 2 )
);
Current Data Table( old dt );
);

rowNum = 3;&amp;nbsp;
colAntib = Column( Data Table( "Antibiotic MICs" ), "neomycin");
//colAntib &amp;lt;&amp;lt; Format( "Fixed Dec", 10, 2 );-this also is not working
colAntibVal = colAntib[ rowNum ]; //it is showing 0.007, three decimal points&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 11 Jun 2023 00:01:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formatting-is-not-accepted-col-lt-lt-Format-quot-Fixed-Dec-quot/m-p/632509#M83090</guid>
      <dc:creator>Aziza</dc:creator>
      <dc:date>2023-06-11T00:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting is not accepted (col &lt;&lt; Format( "Fixed Dec", 10, 2 )) and still getting 3 decimal point as the output. What am I doing wrong?</title>
      <link>https://community.jmp.com/t5/Discussions/Formatting-is-not-accepted-col-lt-lt-Format-quot-Fixed-Dec-quot/m-p/632514#M83091</link>
      <description>&lt;P&gt;Hi Aziza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would guess that formatting doesn't change the underlying value but just how the value is diplayed in the data table. Because in the data table it actually shows 0.01 for your example.&lt;/P&gt;&lt;P&gt;If you want to access less decimal places in your code, you probably should round your value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 10:12:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formatting-is-not-accepted-col-lt-lt-Format-quot-Fixed-Dec-quot/m-p/632514#M83091</guid>
      <dc:creator>Anja_W</dc:creator>
      <dc:date>2023-05-17T10:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting is not accepted (col &lt;&lt; Format( "Fixed Dec", 10, 2 )) and still getting 3 decimal point as the output. What am I doing wrong?</title>
      <link>https://community.jmp.com/t5/Discussions/Formatting-is-not-accepted-col-lt-lt-Format-quot-Fixed-Dec-quot/m-p/632616#M83098</link>
      <description>&lt;P&gt;Hi Anja,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your input.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this solution. It works more or less. What is now happening is this&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;round(0.1964565, 2)
/*:

0.2&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 May 2023 14:19:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formatting-is-not-accepted-col-lt-lt-Format-quot-Fixed-Dec-quot/m-p/632616#M83098</guid>
      <dc:creator>Aziza</dc:creator>
      <dc:date>2023-05-17T14:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting is not accepted (col &lt;&lt; Format( "Fixed Dec", 10, 2 )) and still getting 3 decimal point as the output. What am I doing wrong?</title>
      <link>https://community.jmp.com/t5/Discussions/Formatting-is-not-accepted-col-lt-lt-Format-quot-Fixed-Dec-quot/m-p/633088#M83154</link>
      <description>&lt;P&gt;Even if you change the format in the table the values aren't changed. You could round the value after you get it OR you can use &amp;lt;&amp;lt; Get Values with Format&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open( "$SAMPLE_DATA/Antibiotic MICs.jmp" );

row_nr = 3; 
formatted_values = Column(dt, "neomycin") &amp;lt;&amp;lt; Get Values(
	Format( "Fixed Dec", 10, 2 ) /* a numeric column will be list of character items if a format is supplied, see format function */
);

row_val = formatted_values[row_nr];&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Do note that this will return you with a string not a number (&lt;A href="https://www.jmp.com/support/help/en/17.0/#page/jmp/date-and-time-functions.shtml?os=win&amp;amp;source=application#ww6742865" target="_blank"&gt;https://www.jmp.com/support/help/en/17.0/#page/jmp/date-and-time-functions.shtml?os=win&amp;amp;source=application#ww6742865&lt;/A&gt;). You can convert it into a number using Num()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 07:39:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formatting-is-not-accepted-col-lt-lt-Format-quot-Fixed-Dec-quot/m-p/633088#M83154</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-05-19T07:39:16Z</dc:date>
    </item>
  </channel>
</rss>

