0

# How do you convert graycode to binary?

Updated: 9/19/2023

Wiki User

13y ago

Converting Gray Code to Binary

1). Write down the number in gray code.

2). The most significant bit of the binary number is the most significant bit

of the gray code.

3). Add (using modulo 2) the next significant bit of the binary number to the

next significant bit of the gray coded number to obtain the next binary bit.

4). Repeat step 3 till all bits of the gray coded number have been added in

modulo 2. The resultant number is the binary equivalent of the gray number.

Converting Binary to Gray Code

1). Write down the number in binary code.

2). The most significant bit of the gray number is the most significant bit

of the binary code.

3). Add (using modulo 2) the next significant bit of the binary number to the

next significant bit of the binary number to obtain the next gray coded bit.

4). Repeat step 3 till all bits of the binary coded number have been added in

modulo 2. The resultant number is the gray coded equivalent of the binary

number.

Wiki User

13y ago