You are on page 1of 1

BINARY to DECIMAL

7 6 5 4 3 2 1 0

Position of bit 01000001


Value of the bit

A bit can either be ‘1’ or ‘0’ two possibilities hence Base 2.

Weights 27 26 25 24 23 22 21 20

01000001
Decimal Value= weight x value of bit (for all 8 bits)

Decimal value= (27 x 0) + (26 x 1) + (25 x 0) + (24 x 0) + (23 x 0) + (22 x 0) + (21 x 0) + (20 x 1)

Decimal value= 0 + 64 + 0 + 0 + 0 + 0 + 0 + 1

Decimal Value= 64 + 1

Decimal Value= 65

You might also like