<?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 do I change the number of decimals shown in a formula in a graph? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-I-change-the-number-of-decimals-shown-in-a-formula-in-a/m-p/681170#M86673</link>
    <description>&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;I don't know how to use this JSL?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Efrat&lt;/P&gt;</description>
    <pubDate>Tue, 26 Sep 2023 05:13:23 GMT</pubDate>
    <dc:creator>Efrat_Schwartz</dc:creator>
    <dc:date>2023-09-26T05:13:23Z</dc:date>
    <item>
      <title>How do I change the number of decimals shown in a formula in a graph?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-change-the-number-of-decimals-shown-in-a-formula-in-a/m-p/678628#M86504</link>
      <description>&lt;P&gt;Hi all&lt;BR /&gt;I want to change the format of the decimals in a linear formula, shows on a graph, I want only two digits after the decimal&lt;/P&gt;&lt;P&gt;I attached here a picture of the graph that I prepared and the arrow shows the number I want to change&lt;BR /&gt;thank you&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 06:52:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-change-the-number-of-decimals-shown-in-a-formula-in-a/m-p/678628#M86504</guid>
      <dc:creator>Efrat_Schwartz</dc:creator>
      <dc:date>2023-09-18T06:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change the number of decimals shown in a formula in a graph?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-change-the-number-of-decimals-shown-in-a-formula-in-a/m-p/681157#M86672</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/50751"&gt;@Efrat_Schwartz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;It seems that you need to use JSL to change the format of the numbers in the equation.&lt;BR /&gt;Here is a sample code. I hope it helps.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
decimal_point = 2; // Please change here

rpt = current report();
frame_box_list =  rpt &amp;lt;&amp;lt; xpath( "//FrameBox" );

For( i = 1, i &amp;lt;= N Items( frame_box_list ), i++,
	Try(
		txt_seg = rpt[Framebox( i )] &amp;lt;&amp;lt; Find Seg( "TextSeg" );
		TheFormula = txt_seg &amp;lt;&amp;lt; Get Text;

		current_intercept = Word( 3, TheFormula, " " );
		Intercept = Format( Num( current_intercept ), "Fixed Dec", decimal_point );
		current_beta1 = Word( 5, TheFormula, " *" );
		Beta1 = Format( Num( current_beta1 ), "Fixed Dec", decimal_point );
		new_formula = Substitute( Eval Expr( TheFormula ),
			Eval Expr( current_intercept ), Eval Expr( Intercept ),
			Eval Expr( current_beta1 ), Eval Expr( beta1 )
		);
		txt_seg &amp;lt;&amp;lt; Set Text( new_formula );
	)
);

rpt &amp;lt;&amp;lt; reshow;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 01:32:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-change-the-number-of-decimals-shown-in-a-formula-in-a/m-p/681157#M86672</guid>
      <dc:creator>yuichi_katsumur</dc:creator>
      <dc:date>2023-09-26T01:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change the number of decimals shown in a formula in a graph?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-change-the-number-of-decimals-shown-in-a-formula-in-a/m-p/681170#M86673</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;I don't know how to use this JSL?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Efrat&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 05:13:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-change-the-number-of-decimals-shown-in-a-formula-in-a/m-p/681170#M86673</guid>
      <dc:creator>Efrat_Schwartz</dc:creator>
      <dc:date>2023-09-26T05:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change the number of decimals shown in a formula in a graph?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-change-the-number-of-decimals-shown-in-a-formula-in-a/m-p/681438#M86701</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/50751"&gt;@Efrat_Schwartz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank you for your response.&lt;BR /&gt;- First, create a graph using Graph Builder.&lt;BR /&gt;- Open the script window via File menu &amp;gt; New &amp;gt; Script.&lt;BR /&gt;- Paste the JSL.&lt;BR /&gt;- Execute JSL from Edit menu &amp;gt; Run Script&lt;BR /&gt;Hope it works.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 23:43:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-change-the-number-of-decimals-shown-in-a-formula-in-a/m-p/681438#M86701</guid>
      <dc:creator>yuichi_katsumur</dc:creator>
      <dc:date>2023-09-26T23:43:13Z</dc:date>
    </item>
  </channel>
</rss>

