Yes, you have misunderstood. The words "simple for loop" in my previous post expressed one possible mechanism of looping over elements.
1011 in base 2 is equivalent to 1*8 + 0*4 + 1*2 + 1*1...
Type: Posts; User: grumpy
Yes, you have misunderstood. The words "simple for loop" in my previous post expressed one possible mechanism of looping over elements.
1011 in base 2 is equivalent to 1*8 + 0*4 + 1*2 + 1*1...
A simple for loop, multiplying each digit by a corresponding power of two and adding up in base 16 (hex) would do the trick.