In: Computer Science
Convert from hexadecimal to binary to decimal (PLEASE SHOW WORK)
1. B2
- binary:
- decimal:
2. 37
- binary:
- decimal:
3. 0A
-binary:
- decimal:
4. 11
- binary:
- decimal:
Hexadecimal Binary 0 0000 1 0001 2 0010 3 0011 4 0100 5 0101 6 0110 7 0111 8 1000 9 1001 A 1010 B 1011 C 1100 D 1101 E 1110 F 1111 1) B2 B => 1011 2 => 0010 in binary it is 1011 0010 converting this to decimal here 1011 0010 => 1x27 + 0x26 + 1x25 + 1x24 + 0x23 + 0x22 + 1x21 + 0x20 => 1x128 + 0x64 + 1x32 + 1x16 + 0x8 + 0x4 + 1x2 + 0x1 => 128 + 0 + 32 + 16 + 0 + 0 + 2 + 0 => 178 in decimal it is 178 2) 37 3 => 0011 7 => 0111 in binary it is 0011 0111 converting this to decimal here 0011 0111 => 1x27 + 0x26 + 1x25 + 1x24 + 0x23 + 0x22 + 1x21 + 0x20 => 0x128 + 0x64 + 1x32 + 1x16 + 0x8 + 1x4 + 1x2 + 1x1 => 0 + 0 + 32 + 16 + 0 + 4 + 2 + 1 => 55 in decimal it is 55 3) 0A 0 => 0000 A => 1010 in binary it is 0000 1010 converting this to decimal here 0000 1010 => 1x27 + 0x26 + 1x25 + 1x24 + 0x23 + 0x22 + 1x21 + 0x20 => 0x128 + 0x64 + 0x32 + 0x16 + 1x8 + 0x4 + 1x2 + 0x1 => 0 + 0 + 0 + 0 + 8 + 0 + 2 + 0 => 10 in decimal it is 10 4) 11 1 => 0001 1 => 0001 in binary it is 0001 0001 converting this to decimal here 0001 0001 => 1x27 + 0x26 + 1x25 + 1x24 + 0x23 + 0x22 + 1x21 + 0x20 => 0x128 + 0x64 + 0x32 + 1x16 + 0x8 + 0x4 + 0x2 + 1x1 => 0 + 0 + 0 + 16 + 0 + 0 + 0 + 1 => 17 in decimal it is 17