Want this question answered?
216 -1
11111111 (base 2, also called biinary) represents 255. This is all 8 bits of a byte have a value of 1. A byte can represent 256 different values (0 to 255)
signed magnitude
In theory, 3 bits are enough to represent up to 8 (23) combinations.In theory, 3 bits are enough to represent up to 8 (23) combinations.In theory, 3 bits are enough to represent up to 8 (23) combinations.In theory, 3 bits are enough to represent up to 8 (23) combinations.
byte has 8 bits all bits at 0 = zero all bits at 1 = 255
how many bits are needed to represent decimal values ranging from 0 to 12,500?
32 values. 2^5=32
There are 256 possible values (or characters) in 8 bits.
4 bits
4.1 bit for 2,2 bits for 4,3 bits for 8,4 bits for 16.
1200
216 -1
4
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.
A decimal digit requires 4 bits of memory space to represent all possible values. So N decimal digits will require 4N bits to store in decimal format. On the other hand, if the same N decimal digits were stored as a binary number, they should require log2(10N) bits, that is, about 3.32N bits. So storing the decimal representation uses about 20% more memory. To put it another way, 4 bits is capable of holding one of 16 different values. By using it to store decimal digits, it is only being used to hold one of 10 different values.
6
17 bits would allow a value up to 131071.