hello, Marc Lavallée has wrote two abstractions for doing what you are looking for:<br> <br> http://lists.puredata.info/pipermail/pd-list/2005-08/030459.html<br> <br> patco~<br> <br> <br> <br> <br><br><b><i>adam armfield <adamairmailed@yahoo.com></i></b> a écrit :<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> this is making my brain hurt... is there an object to<br>do it automatically?...<br><br>for various reasons (mostly due to being on a windows<br>machine and wanting a quick solution) i'd like to do<br>this with expr or other built in objects (ruby, py<br>etc. not really an option as of now)<br><br>i've got a snippet of python from the net, would<br>anyone translate this into an expr for me?<br>(in return for my eternal gratitude ;-)<br><br>def Denary2Binary(n):<br> '''convert denary integer n to binary string<br>bStr'''<br> bStr = ''<br> if n < 0: raise ValueError, "must
be a positive<br>integer"<br> if n == 0: return '0'<br> while n > 0:<br> bStr = str(n % 2) + bStr<br> n = n >> 1<br> return bStr<br><br>all the best<br><br>adam<br><br><br> <br> <br> <br>___________________________________________________________ <br>All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine <br>http://uk.docs.yahoo.com/nowyoucan.html<br><br>_______________________________________________<br>PD-list@iem.at mailing list<br>UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list<br></blockquote><br><p> 
                <hr size="1">
<b>Yahoo! Mail réinvente le mail !</b> Découvrez le <a href="http://fr.rd.yahoo.com/evt=40577/*http://fr.promotions.yahoo.com/mail/nouveaumail.html
">nouveau Yahoo! Mail</a> et son interface révolutionnaire.