I want to get the (base 10) digits of an integer as an array. e.g. 2343 becomes an array 2 3 4 3 My attempt is:
tens =. 10 $ 10 tens #: 345 result: 0 0 0 0 0 0 0 3 4 5 I created the initial array tens as a 10 element array, and f course now I have way too many leading zeros in my result. How should I do this properly, returning no leading zeros, for an arbitrary size integer? Thanks. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
