<?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 to represent numeric value &amp;quot;1&amp;quot; as &amp;quot;001&amp;quot;? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-represent-numeric-value-quot-1-quot-as-quot-001-quot/m-p/10976#M10574</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the fast response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Feb 2015 17:35:26 GMT</pubDate>
    <dc:creator>Bo</dc:creator>
    <dc:date>2015-02-17T17:35:26Z</dc:date>
    <item>
      <title>How to represent numeric value "1" as "001"?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-represent-numeric-value-quot-1-quot-as-quot-001-quot/m-p/10972#M10570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have thousands of X and Y coordinates in two different columns and would like to combine the coordinates as 6-digit values into a single column. For example, combine (1,1) into 001001, and combine (14, 14) into 014014. A simplified data table is attached.&lt;/P&gt;&lt;P&gt;How do I do that using formula or script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 15:10:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-represent-numeric-value-quot-1-quot-as-quot-001-quot/m-p/10972#M10570</guid>
      <dc:creator>Bo</dc:creator>
      <dc:date>2015-02-17T15:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to represent numeric value "1" as "001"?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-represent-numeric-value-quot-1-quot-as-quot-001-quot/m-p/10973#M10571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming X and Y never exceed three digits, this should work in a column formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Repeat( "0", 3 - Length( Char( :X ) ) ) || Char( :X ) ||&lt;/P&gt;&lt;P&gt;Repeat( "0", 3 - Length( Char( :Y ) ) ) || Char( :Y )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Edit:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Or maybe this is more efficient:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #032ce4;"&gt;Right&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #032ce4;"&gt;Char&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1e6&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;:&lt;/SPAN&gt;X &lt;SPAN style="color: #011993;"&gt;*&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1e3&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;:&lt;/SPAN&gt;Y &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;6&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 15:29:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-represent-numeric-value-quot-1-quot-as-quot-001-quot/m-p/10973#M10571</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2015-02-17T15:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to represent numeric value "1" as "001"?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-represent-numeric-value-quot-1-quot-as-quot-001-quot/m-p/10974#M10572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the &lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;A href="http://www.jmp.com/support/help/Work_with_Character_Functions.shtml" rel="noopener noreferrer" target="_blank"&gt;Repeat()&lt;/A&gt;&lt;/SPAN&gt; function to pad out the character representation for these coordinates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="8053_JMPScreenSnapz001.png" style="width: 1292px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/1234iF4205D8FE36F4FA3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="8053_JMPScreenSnapz001.png" alt="8053_JMPScreenSnapz001.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #032ce4;"&gt;Repeat&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #942193;"&gt;"0"&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;-&lt;/SPAN&gt; &lt;SPAN style="color: #032ce4;"&gt;Length&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #032ce4;"&gt;Char&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #011993;"&gt;:&lt;/SPAN&gt;X &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;SPAN style="color: #011993;"&gt;||&lt;/SPAN&gt; &lt;SPAN style="color: #032ce4;"&gt;Char&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #011993;"&gt;:&lt;/SPAN&gt;X &lt;STRONG&gt;))&lt;/STRONG&gt; &lt;SPAN style="color: #011993;"&gt;||&lt;/SPAN&gt; &lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier;"&gt;&lt;SPAN style="color: #032ce4;"&gt;Repeat&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #942193;"&gt;"0"&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;-&lt;/SPAN&gt; &lt;SPAN style="color: #032ce4;"&gt;Length&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #032ce4;"&gt;Char&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #011993;"&gt;:&lt;/SPAN&gt;Y &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;SPAN style="color: #011993;"&gt;||&lt;/SPAN&gt; &lt;SPAN style="color: #032ce4;"&gt;Char&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #011993;"&gt;:&lt;/SPAN&gt;Y &lt;STRONG&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached your data table with a new column showing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 22:35:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-represent-numeric-value-quot-1-quot-as-quot-001-quot/m-p/10974#M10572</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2016-10-18T22:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to represent numeric value "1" as "001"?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-represent-numeric-value-quot-1-quot-as-quot-001-quot/m-p/10975#M10573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. Exactly what I want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 17:34:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-represent-numeric-value-quot-1-quot-as-quot-001-quot/m-p/10975#M10573</guid>
      <dc:creator>Bo</dc:creator>
      <dc:date>2015-02-17T17:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to represent numeric value "1" as "001"?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-represent-numeric-value-quot-1-quot-as-quot-001-quot/m-p/10976#M10574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the fast response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 17:35:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-represent-numeric-value-quot-1-quot-as-quot-001-quot/m-p/10976#M10574</guid>
      <dc:creator>Bo</dc:creator>
      <dc:date>2015-02-17T17:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to represent numeric value "1" as "001"?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-represent-numeric-value-quot-1-quot-as-quot-001-quot/m-p/10977#M10575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the left and right functions have a third argument to specify a pad value.&amp;nbsp; &lt;A href="https://community.jmp.com/blogs/id/1034" target="_blank"&gt;JSL Character String Functions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x=42;&lt;/P&gt;&lt;P&gt;right( char(x), 3, "0");&lt;/P&gt;&lt;P&gt;"042"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;be careful, some of the other suggestions may be more robust if the numbers are out-of-bounds, or maybe not, depending what you expect:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x=9876;&lt;/P&gt;&lt;P&gt;right( char(x), 3, "0");&lt;/P&gt;&lt;P&gt;"876"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2016 10:01:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-represent-numeric-value-quot-1-quot-as-quot-001-quot/m-p/10977#M10575</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2016-11-09T10:01:44Z</dc:date>
    </item>
  </channel>
</rss>

