It is 31.
If using the compressed format, where a byte holds two decimal digits (because only 4 bits are needed to make nine), so two bytes would be four decimal digits, the largest which is 9999.
Octet
4 these are 00,01,10 and 11...
That's not a binary number ! Binary numbers can only use the digits 1 and 0.
7 digits
The largest decimal number is binary 11111, which is decimal 31.
You can look it up (00010110) or convert each numeral to binary individually. 11111111 is 255 decimal and is the largest number expressible with 8 binary digits.
It is 216 - 1 = 65535.
10 digits.
If using the compressed format, where a byte holds two decimal digits (because only 4 bits are needed to make nine), so two bytes would be four decimal digits, the largest which is 9999.
56 in binary is 111000. Unlike the decimal number system where we use the digits.
It takes 7 digits.
All I know is that when a number is negative, you convert the decimal into binary and if it is negative you put 1111 before the binary digits.
64 or 123
Octet
4 these are 00,01,10 and 11...
-- The decimal system (base-10) uses 10 digits to write all numbers. -- The binary system (base-2) uses 2 digits to write all numbers.