Create an Integer from Binary (toggle)

gh0stless's icon

I would like to create an integer number with four toggle objects (nibble) ... How do I make the most ellegant?

Rick's icon
Max Patch
Copy patch and select New From Clipboard in Max.
gh0stless's icon

Thanks a lot, Rick.

Roman Thilenius's icon

as one decimal:
expr $i1*1000+$i2*100+$i3*10+$i4

as individual bits:
pak 0 0 0 0

Christopher Dobrian's icon

Or, for maximal incomprehensibility:

Max Patch
Copy patch and select New From Clipboard in Max.