[PD] Converting decimal to binary digits

Mathieu Bouchard matju at artengine.ca
Tue Aug 23 16:27:12 CEST 2005

On Mon, 22 Aug 2005, Marc Lavallée wrote:

> Le 22 Août 2005 15:14, algodon a écrit :
> > This may be an obvious question but i don't know how to do it in PD. I
> > need to build a patch that would convert decimal to binary digits. I
> > would enter 13 and it would render "1101" or 9 would give "1001".
> Here's an abstraction to extract the value of a specific bit,
> along with an example to decode a byte. 
> That's not exactly what you are looking for, but it's a good start.

[rubysprintf %b]

Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju
Freelance Digital Arts Engineer, Montréal QC Canada

More information about the Pd-list mailing list