[Jprogramming] prefix zero

Raul Miller rauldmiller at gmail.com
Mon Feb 1 05:50:19 UTC 2016


In addition to Skip Cave's approach (see
http://www.jsoftware.com/help/dictionary/dx008.htm for reference
material on 8!:0), you could use something like

   0 1}.":,.100+1 2 3 10 11
01
02
03
10
11

For documentation on ,. see
http://www.jsoftware.com/help/dictionary/d321.htm and for
documentation on }. see
http://www.jsoftware.com/help/dictionary/d531.htm

But you should perhaps say a little more about the problem you are
trying to solve, otherwise some issues might not be being dealt with
properly?

-- 
Raul


On Sun, Jan 31, 2016 at 10:44 PM, Steve Mandula <smandula at idirect.com> wrote:
> Could some solve this problem?
> prefix a zero to a number.
>
> so that 1 2 3
> becomes 01 02 03
> and that 10 or 11 remain without the
> zero prefix
>
> With Thanks
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm


More information about the Programming mailing list