Decimal to binary,octal and hexadecimal conversion

Conversion of decimal to any number system of any base is a generalized method.

Let’s directly move on to conversions.

Decimal to binary

All we have to do is just divide the number by 2 and write the remainder in adjacent column. Then, write all the remainder from bottom to top. That’s it, it is the answer. Isn’t that simple?

Continue reading

Binary to gray code converter

(i)           No. of inputs and outputs

Number of inputs – 4

Number of outputs – 4

(ii)         Assigning letter symbols

Symbols of inputs – B4, B3, B2, B1

Symbols of outputs – G4, G3, G2, G1

where B4  is most significant bit and B1 is least significant bit.

Continue reading