<div dir="ltr">maybe with [mod]. Is the number always going to have 3 digits??<div><br></div><div>playing around in 3 minutes, I came up with this (see picture attached). I do not consider it to be elegant, but maybe its a place to start</div><div><br></div><div>cheers</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jan 17, 2021 at 1:18 PM Antoine Rousseau <<a href="mailto:antoine@metalu.net">antoine@metalu.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>You can do this:</div><div>- transform "float 512" into "symbol 512" using [makefilename %d]</div><div>- then transform  "symbol 512" into "list 53 49 50" with [list fromsymbol]. <br></div><div>- finally subtract 48 (which is the ascii for "0") from every item, you get "5 1 2"</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le dim. 17 janv. 2021 à 18:23, Jeppi Jeppi <<a href="mailto:jeppiot@hotmail.com" target="_blank">jeppiot@hotmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hi there,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
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</div>
</div>

_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">José Rafael Subía Valdez<br><div><a href="http://www.jrsv.net" target="_blank">www.jrsv.net</a><br><div><p style="margin:0px 0px 18px;padding:0px;border:0px;font-size:13px;vertical-align:baseline;background-image:initial;background-position:initial;background-repeat:initial;line-height:18px;color:rgb(31,30,35);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif"><br></p><p style="margin:0px 0px 18px;padding:0px;border:0px;font-size:13px;vertical-align:baseline;background-image:initial;background-position:initial;background-repeat:initial;line-height:18px;color:rgb(31,30,35);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif"></p><div style="text-align:left"><i>"...I am an Anarchist! Wherefore I will</i></div><i><div style="text-align:left"><i>Not rule, and also ruled I will not be!"</i></div></i><p></p></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><p style="text-align:left;margin:0px 0px 18px;padding:0px;border:0px;font-size:13px;vertical-align:baseline;background-image:initial;background-position:initial;background-repeat:initial;line-height:18px;color:rgb(31,30,35);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif">- John Henry Mackay -</p></div></div></blockquote></blockquote><div><div><br><div><br><font face="'lucida grande', tahoma, verdana, arial, sans-serif" size="4"><span style="font-size:14px;line-height:17px"><br></span></font></div></div></div></div></div>