I'm struggling how to do this calculation in Max:
My program will return a "3", meaning that the 3rd bit in an 8-bit number is "on" (100, or 4) . A "4" means the 4th bit is "on" (1000, or 8), and so on. But I'm having trouble converting the initial number that signals which bit is on (3 or 4 in the above examples) to its binary or decimal version (again, 100/4 or 1000/8 in the above examples). Any thoughts?