That depends what you mean by "B", and what you mean by "binary code" assuming that by "binary code", you actually mean a binary representation of it's ascii value, then the answer is 1000010. The ascii value of the character "B" is 66 in decimal, which is 1000010 is that value in binary. If on the other hand, you mean "what is the binary value of the hexidecimal number B?", then the answer is 1011.
Did anyone ever stop and think - it was made up? I mean really ...
Decimal 30 = binary 11110. The decimal binary code (BCD), however, is 11 0000.
356 in binary is101100100
14 decimal in binary is 11102. In octal it is 168 and in hexadecimal it is 0E16.
The binary code 10101010 represents the decimal number 170. In binary code, each digit is a power of 2, starting from the right with 2^0. Therefore, the binary digit 1 in the rightmost position represents 2^0, which is 1. Adding up the values of each digit in the binary code 10101010 gives 128 + 32 + 8 + 2 = 170 in decimal form.
In any base other than 2 (ie other than binary): 10101010 + 01111 = 10102121 In base 2 (binary): 10101010 + 01111 = 10111001
10101010
The binary number 10101010 is equivalent, in decimal representation, to 128 + 32 + 8 + 2 = 170. But this answer assumes that the given number is binary - an assumption for which there is no real justification. Besides, the relationship is an equivalence, which is not quite "the same thing".
10101010 + 01111 = 10111001 (170+15 = 185)
170
Decimal: 170Hex: AA
Each place represents a power of 2. 10101010 base 2 = 27 + 25 + 23 + 21 = 128 + 32 + 8 + 2 = 170
That depends what you mean by "B", and what you mean by "binary code" assuming that by "binary code", you actually mean a binary representation of it's ascii value, then the answer is 1000010. The ascii value of the character "B" is 66 in decimal, which is 1000010 is that value in binary. If on the other hand, you mean "what is the binary value of the hexidecimal number B?", then the answer is 1011.
To find the sum of the binary numbers 10101010 and 01111, first align them for addition: 10101010 + 0010111 ----------- Adding from right to left, we get: 0 + 1 = 1 1 + 1 = 10 (write 0, carry 1) 1 + 1 + 1 (carry) = 11 (write 1, carry 1) 0 + 0 + 1 (carry) = 1 1 + 0 = 1 0 + 0 = 0 1 + 0 = 1 1 + 0 = 1 Combining the results gives us 11010101 in binary. Thus, the sum of 10101010 and 01111 is 11010101.
1111 in binary is 15 in decimal.
170/2 = 85 R 0. Therefore binary number so far is 0.85/2 = 42 R 1. Therefore binary number so far is 10.42/2 = 21 R 0. Therefore binary number so far is 010.21/2 = 10 R 1. Therefore binary number so far is 1010.10/2 = 5 R 0. Therefore binary number so far is 01010.5/2 = 2 R 1. Therefore binary number so far is 101010.2/2 = 1 R 0. Therefore binary number so far is 0101010.1/2 = 0 R 1. Therefore binary number so far is 10101010.The integer portion of last division was 0 so for the decimal number 170, the binary equivalent is 10101010.