You can do this:- transform "float 512" into "symbol 512" using [makefilename %d]- then transform "symbol 512" into "list 53 49 50" with [list fromsymbol].- finally subtract 48 (which is the ascii for "0") from every item, you get "5 1 2"_______________________________________________Le dim. 17 janv. 2021 à 18:23, Jeppi Jeppi <jeppiot@hotmail.com> a écrit :_______________________________________________Hi there,which would be your most elegant way to split a number into a list of digits? that is, I have the number 512 and I want the list 5 1 2
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
- John Henry Mackay -