vector from scalar

Can any one tell me how to encode a scalar numeric to base 10 notation?
e.g., 5678 <=> 10 sv 5 6 7 8  

but how do you get back 5 6 7 8 from 5678?

10 vs 5678

'nyi

I have no problem doing this in base 16 but not for base 10.

e.g.,  5678 = 0x00 sv 0x00 vs 10 sv 5 6 7 8

1b

A different approach.

-48+“i”$string 5768

nyi means not implemented yet.
you could work around like this:

.Q.n?string 10 sv 5 6 7 8 

Thank you, that works.
Actually, I am looking for something similar to the “encode” operator of APL.
e.g., to get vector from the scalar q)100 sv 2014 07 14
20140714

To: personal-kdbplus@googlegroups.comX-Mailer: Apple Mail (2.1878.6)X-H-Notify: Remote host 213.182.238.93 incorrectly presented itself as [192.168.1.100]X-Scan-Signature: 2a25a03f1ffea761c4f23529bc8fb87cSomething like this?q)encode:{1_reverse mod[scan[div[;x]]y;x]}q)encode[100] 2014071420 14 7 14On 15.07.2014, at 01:15, sudhakar wrote:> Actually, I am looking for something similar to the “encode” operator of APL.> e.g., to get vector from the scalar q)100 sv 2014 07 14> 20140714