The number of bits in the binary number is the exponent of the smallest power of 2 that is larger than the decimal number. Consider a decimal number 23. Find the exponent of the smallest power of 2 that is larger than 23Hence, the number 23 has 5 bits as 10111. Consider another example. Find the number of bits in the binary representation of the decimal number 36 without actually converting into its binary equivalent. The next immediate large number than 36 that can be represented in powers of 2 is 64
đang được dịch, vui lòng đợi..