Decimal to Binary, not binary to decimal.
I know I've seen this somewhere before, but I can't find it anywhere now so I apologise if this has been asked and answered in the past.
I am trying to convert decimal numbers into binary in such a way that the individual bits are separate from each other and the numbers are always represented by 8 bits. For example, I would like to have the number 2 come out as 0, 0, 0, 0, 0, 0, 1, 0 with each of those digits in separate integer boxes.
The display options in the inspector for the integer box does not achieve the result I am looking for. I have seen many, many different implementations of binary to decimal, but I need decimal to binary. I have seen java and javascript and external modules/extensions/etc recommended and used but I am trying to find (and am certain I have seen before) a solution which does not use anything outside of the native Max 6 environment. I have been going around in circles all day. I am sure there is a way to use bitwise operators to do this but I can't seem to get my head around it.
Any help would be greatly appreciated. Thanks so much.
Thanks a million for that, Jesse. It is exactly what I was trying to do, and very close to what I had been messing about with but I obviously didn't have a clear idea of how the "&" operator works. Thanks again.
Also.. if you need to distribute an existing bit list to individual number boxes, [listfunnel] --> [spray] works well.
or use this...
if anybody's interested. Here's another solution, that's working in RNBO too:
you use floor from jasch objects which accepts only float as input,
means no output at all.
and why ?
input is int, even if input was float insertion of int object would do the same - get next low int from float.
And if you use 3rd party externals, why not use
jasch bitlist which does it all in one go?

P.S. tried negative input ?
Here's another one, supports 64-bit ints:
OK, I should have stated, that my patch was for use in RNBO exclusively. Since RNBO doesn't distinguish int and floatingpoint values. so the floor object was used to get the quotient of the division by 2. In Max you get that automaticall when using an integer division.
ah, and also in RNBO there is a vanilla floor object. so again, should have stated, that mine is a RNBO only solution. But thanks for pointing out and translating to standard Max @ Source Audio :)