Daheem Ahmed

Daheem Ahmed

  • NA
  • 1
  • 1.8k

Extracting N-bit signed integer from a byte array

Apr 2 2013 4:58 AM

I have a byte array of variable size (3-5).

I need to extract N-bit signed integer stored as two's complement, having a range of -2^(N-1) + 1 to +2^(N-1) – 1

How can I do that?


Answers (1)