Last Updated: February 25, 2016
·
415
· dionysios

Convert a number to a list of digits in Q

Using the internal variable .Q.n, we can convert a number to the list of its digits with the following function:

f: {.Q.n ? string x}

As an added convenience, heading zeros are removed.
For example:

f 0007890     / 7 8 9 0