a general rule for binary is that the number of alternatives = 2 raised to the # of bits power.
Two to the seventh power is 128
Chat with our AI personalities
2 raised to the 8th power, or "2^8", or 256.
Using 4 bits the signed range of numbers is -8 to 7. When working with signed numbers one bit is the sign bit, thus with 4 bits this leaves 3 bits for the value. With 3 bits there are 8 possible values, which when using 2s complement have ranges: for non-negative numbers these are 0 to 7; for negative numbers these are -1 to -8. Thus the range for signed 4 bit numbers is -8 to 7.
24, or 16 (0 through 15) One binary digit (bit) can have 21 values (0 or 1). Two bits can have 22 values. Three bits can have 23 values. A five-bit number can have 25 values... and so on...
A 128-bit register can store 2 128th (over 3.40 × 10 38th) different values. The range of integer values that can be stored in 128 bits depends on the integer representation used.
0.0000001