A slightly different approach that may not work for really big numbers.

convert1=.-.&' '"1@:((0 0 1|."0 1 ]3 27$' ',digits) ({"0 _1"1 2)~ Base&#.^:_1)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to