You are on page 1of 6

Number System

Conversion
Addition / Subtraction Method
• Binary is Key System between all other systems.
8th Bit 7th Bit 6th Bit 5th Bit 4th Bit 3rd Bit 2nd Bit 1st Bit

2^7 2^6 2^5 2^4 2^3 2^2 2^1 2^0

128 64 32 16 8 4 2 1

1 0 0 0 1 0 1 0

128 0 0 0 8 0 2 0

Total of ( 1000 1010 )2 = 128 + 0 + 0 + 0 + 1 + 0 + 1 + 0 = 138


Binary and Octal Relationship

( 1100 0011 )2 to ( ? )8 = ( 303 )8

Relationship -> octal is 8 unit based, so to equivalent with 8 units 3 successive bits of binary is needed.

Start separating 3 successive bits from LeftMostBits.


1100 0011 ->11 000 011

Add leading 0 if necessary ( adding 0 in leading may not change the value )

011 000 011

Then calculate respective coefficient value separately ( breaking large calculation into smaller handhold ones )

011 000 011 Red is 0 + 2 + 1 = 3 Green is 0+0+0 = 0 Pink is 0 + 2 + 1 = 3


Binary and Hexadecimal Relationship

( 1100 0011 )2 to ( ? )16 = ( C3 )16

Relationship -> octal is 16 unit based, so to equivalent with 16 units 4 successive bits of binary is needed.

Start separating 4 successive bits from LeftMostBits.


1100 0011 ->1100 0011

Add leading 0 if necessary ( adding 0 in leading may not change the value )

In this case, no leading 0 needs to add.

Then calculate respective coefficient value separately ( breaking large calculation into smaller handhold ones )

1100 0011 Yellow is 8 + 4 + 0 + 0 = 12 = C Red is 0 + 0 + 2 + 1 = 3


Example Exercise

Binary Decimal Octal HexaDecimal


X 192 Y Z

192 = 128 + 64 + 0 + 0 + 0 + 0 + 0 + 0 = 1100 0000 = X

Y = 011 000 000 = 300

Z = 1100 0000 = C 0
Exercise ( fill all the blanks )
Binary Decimal Octal HexaDecimal
1010 0100
125
376
EA

You might also like