<?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: digits to appear as double digits in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/digits-to-appear-as-double-digits/m-p/36031#M21216</link>
    <description>&lt;P&gt;To learn about the Substr function and as a matter of fact, any of the functions, go to the Scripting Index.&amp;nbsp; For info on the Substring(Substr) function:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Help==&amp;gt;Scripting Index==&amp;gt;Functions==&amp;gt;Character==&amp;gt;Substr&lt;/P&gt;</description>
    <pubDate>Fri, 17 Feb 2017 18:32:29 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2017-02-17T18:32:29Z</dc:date>
    <item>
      <title>digits to appear as double digits</title>
      <link>https://community.jmp.com/t5/Discussions/digits-to-appear-as-double-digits/m-p/35985#M21200</link>
      <description>&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;Hi &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;The&amp;nbsp;JSL script&amp;nbsp;below is outputting a week number from a data in JSL. however it outputs the lower weeks as 1-9 in single digits however, I need these to appear in double digits ie 01 instead of 1, 02 instead of 2..etc.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;I am hoping someone knows a way to do this, any ideas would be great.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Consolas" size="2"&gt;JSL script&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;ST &amp;lt;&amp;lt; &lt;/FONT&gt;&lt;FONT color="#000080" face="Consolas" size="2"&gt;New Column&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;( &lt;/FONT&gt;&lt;FONT color="#800080" face="Consolas" size="2"&gt;"ww"&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Numeric,&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Consolas" size="2"&gt;"Nominal"&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000dd" face="Consolas" size="2"&gt;Format&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;( &lt;/FONT&gt;&lt;FONT color="#800080" face="Consolas" size="2"&gt;"Best"&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;, &lt;/FONT&gt;&lt;FONT color="#008080" face="Consolas" size="2"&gt;12&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; ),&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;Formula( &lt;/FONT&gt;&lt;FONT color="#0000dd" face="Consolas" size="2"&gt;Week Of Year&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;( :time ) )&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 10:38:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/digits-to-appear-as-double-digits/m-p/35985#M21200</guid>
      <dc:creator>DKI</dc:creator>
      <dc:date>2017-02-17T10:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: digits to appear as double digits</title>
      <link>https://community.jmp.com/t5/Discussions/digits-to-appear-as-double-digits/m-p/35989#M21202</link>
      <description>&lt;P&gt;If you are using JMP 13, in your script, set the format to:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Format(
	"Custom",
	Formula( Substr( "00", 1, 2 - Length( Char( value ) ) ) || Char( value ) ),
	12
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 14:50:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/digits-to-appear-as-double-digits/m-p/35989#M21202</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-02-17T14:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: digits to appear as double digits</title>
      <link>https://community.jmp.com/t5/Discussions/digits-to-appear-as-double-digits/m-p/36018#M21206</link>
      <description>&lt;P&gt;Thanks alot Jim.&lt;/P&gt;&lt;P&gt;Spent ages trying to find something that could do that in the column info.&lt;/P&gt;&lt;P&gt;Not exactly sure how substring command is doing that but it works.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 16:07:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/digits-to-appear-as-double-digits/m-p/36018#M21206</guid>
      <dc:creator>DKI</dc:creator>
      <dc:date>2017-02-17T16:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: digits to appear as double digits</title>
      <link>https://community.jmp.com/t5/Discussions/digits-to-appear-as-double-digits/m-p/36031#M21216</link>
      <description>&lt;P&gt;To learn about the Substr function and as a matter of fact, any of the functions, go to the Scripting Index.&amp;nbsp; For info on the Substring(Substr) function:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Help==&amp;gt;Scripting Index==&amp;gt;Functions==&amp;gt;Character==&amp;gt;Substr&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 18:32:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/digits-to-appear-as-double-digits/m-p/36031#M21216</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-02-17T18:32:29Z</dc:date>
    </item>
  </channel>
</rss>

