This does the trick for character representations rather than the numbers, so
avoiding rounding of floats:
(' '-.~,@:((*:&.".)"0))^:(i.5)":9
9
81
641
36161
9361361
Not too elegant, I’m afraid!
Mike
Written in J701 on and Sent from my iPad...
> On 13 May 2019, at 10:48, R.E. Boss <[email protected]> wrote:
>
> ((]#.~ 10x^10>:@<.@^.]) *:@(10&#.^:_1))^:(i.10)9
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm