> 0-5 : 4 bits
I wonder how you came up with 4. ;-)
Oh yes, thanks. I jumped straight to ( smallest n where 2^n >= 5 ), but it should be (2^(n+1) - 1) >= 5
Sorry OP, subtract 1 bit from my previous post.
J.
Reputation Points: 1924
Solved Threads: 951
Posting Expert
Offline 5,788 posts
since Apr 2008