KnowledgeBoat Logo

Computer Science

Convert the following binary numbers into decimal:

(a) 10010

(b) 101010

Number System

3 Likes

Answer

(a) 10010

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

Equivalent decimal number = 2 + 16 = 18

Therefore, (10010)2 = (18)10.

(b) 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

Therefore, (101010)2 = (42)10.

Answered By

2 Likes


Related Questions