KnowledgeBoat Logo
|
LoginJOIN NOW

Computer Science

Convert binary number into decimal number.

(a) 10111

(b) 111101

(c) 101010.011

(d) 101101

Number System

2 Likes

Answer

(a) 10111

Binary
No
PowerValueResult
1 (LSB)2011x1=1
12121x2=2
12241x4=4
02380x8=0
1 (MSB)24161x16=16

Equivalent decimal number = 1 + 2 + 4 + 16 = 23

Therefore, (10111)2 = (23)10.

(b) 111101

Binary
No
PowerValueResult
1 (LSB)2011x1=1
02120x2=0
12241x4=4
12381x8=8
124161x16=16
1 (MSB)25321x32=32

Equivalent decimal number = 1 + 4 + 8 + 16 + 32 = 61

Therefore, (111101)2 = (61)10.

(c) 101010.011

For the integer part (101010):

Binary
No
PowerValueResult
0 (LSB)2010x1=0
12121x2=2
02240x4=0
12381x8=8
024160x16=0
1 (MSB)25321x32=32

Equivalent decimal number = 2 + 8 + 32 = 42

For the fractional part (0.011):

Binary
No
PowerValueResult
0 (LSB)2-10.50x0.5=0
12-20.251x0.25=0.25
12-30.1251x0.125=0.125

Equivalent decimal number = 0.25 + 0.125 = 0.375

Therefore, (101010.011)2 = (42.375)10.

(d) 101101

Binary
No
PowerValueResult
1 (LSB)2011x1=1
02120x2=0
12241x4=4
12381x8=8
024160x16=0
1 (MSB)25321x32=32

Equivalent decimal number = 1 + 4 + 8 + 32 = 45

Therefore, (101101)2 = (45)10.

Answered By

1 Like


Related Questions