<?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 change &amp;quot;E&amp;quot; for powers of 10 in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-change-quot-E-quot-for-powers-of-10/m-p/725245#M90935</link>
    <description>&lt;P&gt;I also think it might be worth to create a wish list item for this (if there isn't one).&lt;/P&gt;</description>
    <pubDate>Fri, 23 Feb 2024 14:22:38 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-02-23T14:22:38Z</dc:date>
    <item>
      <title>How change "E" for powers of 10</title>
      <link>https://community.jmp.com/t5/Discussions/How-change-quot-E-quot-for-powers-of-10/m-p/725165#M90925</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;For a publication in a scientific paper I made graph under JMP 17 (file attached). Editor asks me to change the "E" for powers of 10. In other words, 3.4 × 10⁵ instead of 3.4e+5. Could you please tell me if there is an easy way to do this ?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Sébastien&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 08:42:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-change-quot-E-quot-for-powers-of-10/m-p/725165#M90925</guid>
      <dc:creator>Emmerich38</dc:creator>
      <dc:date>2024-02-23T08:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: How change "E" for powers of 10</title>
      <link>https://community.jmp.com/t5/Discussions/How-change-quot-E-quot-for-powers-of-10/m-p/725222#M90932</link>
      <description>&lt;P&gt;Maybe you can use Custom format&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1708690528667.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61419i6BB007A9800C14D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1708690528667.png" alt="jthi_0-1708690528667.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/17.2/index.shtml#page/jmp/numeric-formats.shtml" target="_blank"&gt;https://www.jmp.com/support/help/en/17.2/index.shtml#page/jmp/numeric-formats.shtml&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 12:15:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-change-quot-E-quot-for-powers-of-10/m-p/725222#M90932</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-02-23T12:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: How change "E" for powers of 10</title>
      <link>https://community.jmp.com/t5/Discussions/How-change-quot-E-quot-for-powers-of-10/m-p/725225#M90933</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you for your quick reply. Now it is like this. Do you think it is possible to adapt the formula to have this representation? 3.4 × 10⁵ ? Without the ^, but with the number in the exponent ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="puissance3.JPG" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61421i02ACF45E2F016813/image-size/medium?v=v2&amp;amp;px=400" role="button" title="puissance3.JPG" alt="puissance3.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sébastien&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 12:35:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-change-quot-E-quot-for-powers-of-10/m-p/725225#M90933</guid>
      <dc:creator>Emmerich38</dc:creator>
      <dc:date>2024-02-23T12:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: How change "E" for powers of 10</title>
      <link>https://community.jmp.com/t5/Discussions/How-change-quot-E-quot-for-powers-of-10/m-p/725232#M90934</link>
      <description>&lt;P&gt;Try with custom format like this.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;keys = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9"};
values = {"\!U2070", "\!U00B9", "\!U00B2", "\!U00B3", "\!U2074", "\!U2075", "\!U2076", "\!U2077", "\!U2078", "\!U2079"};
superscripts = Associative Array(keys, values);

valstr = Format(value, "Scientific");
exp = Word(-1, valstr, "+");
e_sup = Transform Each({e_val}, Words(exp, ""), superscripts[e_val]);
exp_superscripts = Concat Items(e_sup, "");

val = Word(1, valstr, "+");
final_val = Substitute(val, "e", "×10" || exp_superscripts);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You might have to add some if statements to handle some specific situations if the format isn't correct&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = New Table("demo",
	Add Rows(13),
	Compress File When Saved(1),
	New Column("Column 1",
		Numeric,
		"Continuous",
		Format("Scientific", 64),
		Set Values(
			[1, 10, 20, 2.5, 200, 2000, 20000, 200000, 2000000, 2000000, 20000000000,
			2000000000000, 2.22222222222222e+19]
		),
		Set Display Width(155)
	),
	New Column("Column 2",
		Numeric,
		"Continuous",
		Format(
			"Custom",
			Formula(
				keys = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9"};
				values = {"⁰", "¹", "²", "³", "⁴", "⁵", "⁶", "⁷", "⁸", "⁹"};
				superscripts = Associative Array(keys, values);
				valstr = Format(value, "Scientific");
				exp = Word(-1, valstr, "+");
				e_sup = Transform Each({e_val}, Words(exp, ""), superscripts[e_val]);
				exp_superscripts = Concat Items(e_sup, "");
				val = Word(1, valstr, "+");
				final_val = Substitute(val, "e", "×10" || exp_superscripts);
			),
			64,
			0
		),
		Set Values(
			[1, 10, 20, 2.5, 200, 2000, 20000, 200000, 2000000, 2000000, 20000000000,
			2000000000000, 2.22222222222222e+19]
		),
		Set Display Width(134)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1708695194819.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61423i5CD24B43D1598620/image-size/large?v=v2&amp;amp;px=999" role="button" title="jthi_1-1708695194819.png" alt="jthi_1-1708695194819.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1708695297421.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61424i5CFF145DC80E1E99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1708695297421.png" alt="jthi_2-1708695297421.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 13:35:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-change-quot-E-quot-for-powers-of-10/m-p/725232#M90934</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-02-23T13:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: How change "E" for powers of 10</title>
      <link>https://community.jmp.com/t5/Discussions/How-change-quot-E-quot-for-powers-of-10/m-p/725245#M90935</link>
      <description>&lt;P&gt;I also think it might be worth to create a wish list item for this (if there isn't one).&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 14:22:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-change-quot-E-quot-for-powers-of-10/m-p/725245#M90935</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-02-23T14:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: How change "E" for powers of 10</title>
      <link>https://community.jmp.com/t5/Discussions/How-change-quot-E-quot-for-powers-of-10/m-p/725269#M90941</link>
      <description>&lt;P&gt;I saw that there is a wish list dating back to 2022. As I'm a beginner, I don't understand where I should put the script you presented above.&lt;/P&gt;&lt;P&gt;Could you give me a step by step description or a link to learn how I can do this.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Yours faithfully&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 15:22:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-change-quot-E-quot-for-powers-of-10/m-p/725269#M90941</guid>
      <dc:creator>Emmerich38</dc:creator>
      <dc:date>2024-02-23T15:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: How change "E" for powers of 10</title>
      <link>https://community.jmp.com/t5/Discussions/How-change-quot-E-quot-for-powers-of-10/m-p/725275#M90942</link>
      <description>&lt;P&gt;One thing my script doesn't currently take into account are negative exponents, but your data didn't seem to have those, so I didn't implement them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Open your column properties (right click -&amp;gt; column info, or just double click on the header)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1708701918985.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61440i4EE79B6B3477F70F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1708701918985.png" alt="jthi_0-1708701918985.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;From format go to Custom&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1708701955957.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61441iB44EFD4F4BDFB1BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1708701955957.png" alt="jthi_1-1708701955957.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then click Set Custom format. On the (formula) editor copy and paste&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;keys = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9"};
values = {"\!U2070", "\!U00B9", "\!U00B2", "\!U00B3", "\!U2074", "\!U2075", "\!U2076", "\!U2077", "\!U2078", "\!U2079"};
superscripts = Associative Array(keys, values);

valstr = Format(value, "Scientific");
exp = Word(-1, valstr, "+");
e_sup = Transform Each({e_val}, Words(exp, ""), superscripts[e_val]);
exp_superscripts = Concat Items(e_sup, "");

val = Word(1, valstr, "+");
final_val = Substitute(val, "e", "×10" || exp_superscripts);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1708702001023.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61442iDF88C55FADE3F9A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1708702001023.png" alt="jthi_2-1708702001023.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;click ok to close the editor. Then apply and OK to apply your format&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_3-1708702026996.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61443i265E9802B0D4872B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_3-1708702026996.png" alt="jthi_3-1708702026996.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_4-1708702035145.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61444i9AF4712152505FAD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_4-1708702035145.png" alt="jthi_4-1708702035145.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 15:27:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-change-quot-E-quot-for-powers-of-10/m-p/725275#M90942</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-02-23T15:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: How change "E" for powers of 10</title>
      <link>https://community.jmp.com/t5/Discussions/How-change-quot-E-quot-for-powers-of-10/m-p/725284#M90945</link>
      <description>&lt;P&gt;Thanks a lot, I copied your script in the custom section over the graphic and it works.&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 16:01:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-change-quot-E-quot-for-powers-of-10/m-p/725284#M90945</guid>
      <dc:creator>Emmerich38</dc:creator>
      <dc:date>2024-02-23T16:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: How change "E" for powers of 10</title>
      <link>https://community.jmp.com/t5/Discussions/How-change-quot-E-quot-for-powers-of-10/m-p/725293#M90950</link>
      <description>&lt;P&gt;There is also blog post&lt;LI-MESSAGE title="Reply All: Scientific notation such as 6.02×10²³ using custom axis formats" uid="559110" url="https://community.jmp.com/t5/The-Plot-Thickens/Reply-All-Scientific-notation-such-as-6-02-10-using-custom-axis/m-p/559110#U559110" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-blog-thread lia-fa-icon lia-fa-blog lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;which has different custom formula which also takes the negative exponent into account. Here is my modified version of the version from the blog post by Xan (biggest change is to use Words() in Substitute Into to remove need for loop).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For scripting this can be used &lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Local({
	supers = "⁰¹²³⁴⁵⁶⁷⁸⁹⁻",
	numbers = "0123456789-",
	numpart, exprpart
},
	supers = "⁰¹²³⁴⁵⁶⁷⁸⁹⁻";
	numbers = "0123456789-";
	{numpart, exppart} = Words(Format(value, "Scientific", width, dec), "e+");
	Substitute Into(exppart, "+", "", Words(numbers, ""), Words(supers, ""));
	If(value == 0, 
		"0";
	, 
		numpart || " × 10" || exppart;
	);
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;And for easy copypaste this works (locals not used)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;supers = "⁰¹²³⁴⁵⁶⁷⁸⁹⁻";
numbers = "0123456789-";
{numpart, exppart} = Words(Format(value, "Scientific", width, dec), "e+");
Substitute Into(exppart, "+", "", Words(numbers, ""), Words(supers, ""));
If(value == 0, 
	"0";
, 
	numpart || " × 10" || exppart;
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 16:25:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-change-quot-E-quot-for-powers-of-10/m-p/725293#M90950</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-02-23T16:25:01Z</dc:date>
    </item>
  </channel>
</rss>

