0.00195 KB equals 2 bytes
Chat with our AI personalities
11b which is 1*2 + 1*1 = 3 would be for two bits. But a byte is 8 bits, so 2 bytes is 16 bits. The largest binary number is [2^16 - 1], which is 65535 (base ten)
Oh, dude, the BCD number system is like that old-school friend who still uses a flip phone. The advantage is it's easy for humans to read since each decimal digit is represented by a 4-bit binary number. But the downside is it's not very efficient in terms of storage space compared to other number systems. So, like, it's great for nostalgia but not so much for modern computing efficiency.
A byte is 8 binary bits, each of which hold a value of 0 or 1 (true or false). When counting in binary, a value of 11111111 is the highest value a byte can hold, this is 255. It doesn't matter what programming language is assigning a value to the byte, the highest it can hold is 255. A 'signed' byte uses one bit for the sign, and 7 for the value. Hence 7 bits can show values of up to 128 either side. That's a positive value of 1-127, along with the 0, and then negative values of -1 to -128. Again, regardless of the system assigning the value, 8 bits can only produce 255 different combinations.
A byte represented of 8 bits
1 byte = 8 bits