Anda di halaman 1dari 4

Decimal number system

Conversion of decimal to binary ( base 10 tobase 2)

convert (68)10to binary

68/2 = 34 remainder is 0
34/ 2 = 17 remainder is 0
17 / 2 = 8 remainder is 1
8 / 2 = 4 remainder is 0
4 / 2 = 2 remainder is 0
2 / 2 = 1 remainder is 0
1 / 2 = 0 remainder is 1
Answer = 1 0 0 0 1 0 0

Conversion of decimal fraction to binary fraction

convert ( 0.68)10to binary fraction.

0.68 * 2 = 1.36 integer part is 1


0.36 * 2 = 0.72 integer part is 0
0.72 * 2 = 1.44 integer part is 1
0.44 * 2 = 0.88 integer part is 0

Answer = 0. 1 0 1 0

convert ( 68.68)10 to binary equivalent

Answer = 1 0 0 0 1 0 0 . 1 0 1 0

Conversion of decimal to octal ( base 10 tobase 8)


convert (177)10 to octal
177/ 8= 22 remainder is 1
22 / 8 = 2 remainder is 6
2 / 8 = 0 remainder is 2
Answer
=261
Note: the answer is read from bottom to top as(261)8, the same as with the binary case

Conversion of decimal to hex ( base 10 to base 16)

convert (4768)10 to hex.

= 4768 / 16 = 298 remainder 0


= 298 / 16 = 18 remainder 10 (A)
= 18 / 16 =1 remainder 2
= 1 / 16 =0 remainder 1

Answer: 1 2 A0
Binary number system

Conversion of binary to decimal (base 2 to base 10)

convert (1000100)2 to decimal

= 1 x26 +0 x25+ 0 x24+ 0 x23+1 x22+0 x21+0 x20


= (1 x64 )+(0 x32)+ (0 x16)+ (0 x8)+(1 x4)+(0 x2)+(0 x1)
= 64 + 0 + 0 + 0 + 4 + 0 + 0
= (68)10
101101
= 1 x 25+ 0 x 24+ 1 x 23+ 1 x 22+ 0 x 21+ 1 x 20
= 1 x 32 + 0 x 16 + 1 x 8 + 1 x 4 + 0 x 2 + 1 x 1
= 32 + 8 + 4 + 1
= (45)10
Conversion of binary number to a Octal number(base 2 to base 8)

Convert 1010100112 to octal.

Separate into threes: 101 010 011


421 421 421

5 2 3 =523(8)

Conversion of binary number to a hexadecimal number(base 2 to base 16)


Convert the binary number 10110101 to a hexadecimal number

Divide into groups for 4 digits 1011 0101


Convert each group to hex digit B 5
= B5
(16)
octal number system

Conversion of octal to decimal ( base 8 to base 10)

convert (632)8to decimal

= (6 x 82) + (3 x 81) + (2 x 80)


= (6 x 64) + (3 x 8) + (2 x 1)
= 384 + 24 + 2
= (410)10

Conversion of octal to Binary ( base 8 to base 2)

convert (345)8to Binary

Octal = 3 4 5
Binary =011 100 101
=011100101(2)

Conversion of octal to Hexa-decimal ( base 8 to base 16)

Convert 536(octal) into hexa-decimal

(536)8 = (101) (011) (110)

=(101011110)2

Now forming the group of 4 binary bits to obtain its hexadecimal equivalent,

(101011110)2 = (0001) (0101) (1110)


= (15E)16
Hexa - Decimal number system
Conversion of hex to decimal ( base 16 to base 10)

Convert (F4C)16 to decimal

= (F x 162) + (4 x 161) + (C x 160)


= (15 x 256) + (4 x 16) + (12 x 1)

Convert (52FA16) to decimal


52FA16 = 5 x 163 + 2 x 162 + 15 x 161 + 10 x 160
= 5 x 4096 + 2 x 256 + 5 x 16 + 10 x 1
= 21,242(10)

Conversion of hex to Binary ( base 16 to base 2)

= 0011101010110010(2)

Conversion of hex to Octal ( base 16 to base 8)

Anda mungkin juga menyukai