On 3/3/08, June Kim <[EMAIL PROTECTED]> wrote:
> I have a feeling that I might be missing a more obvious and simpler solution.
I do not know if this counts as simpler, but I would be inclined to
use
zfn=: [EMAIL PROTECTED] {. ]":@+10^[
5 zfn 123
00123
5 zfn 13
00013
Note that I have assumed that that this verb will be used
at rank zero, and that my arguments are reasonable
positive integers. If the right argument is negative, I will
display a 9's complement result. If the right argument is
too large, I will truncate the result. If the right argument
is fractional I may or may not treat it reasonably.
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm