## TOOL: DECIMAL TO GRAY CODE CONVERTER

#### DECIMAL TO GRAY CODE CONVERTER

Enter a decimal number.

(75)10 = (1101110)GRAY

SOLUTION STEPS

So, (75)10 is 1101110 in Gray code.

OTHER INFORMATION

👉 Click here to see how we find the binary equivalent of 75.

Copied to clipboard
Copy Text

## INFORMATION

Decimal to Gray code conversion is accomplished in two steps. First, we convert the decimal number to binary and then convert the binary number to Gray code.

In binary to Gray code conversion, we write the most significant bit (the leftmost one) of the binary number to the Gray code directly. To find the remaining bits of the Gray code, we compare the neighboring bits (starting from the leftmost two bits) in the binary number. If the leftmost (n-1)th and nth bits of the binary number are the same, we write 0 to the leftmost nth bit of the Gray code. If they are different, we write 1 to the same location of the Gray code.

### WHAT IS DECIMAL TO GRAY CODE CONVERTER?

Decimal to BCD converter,

• Converts the entered decimal number to Gray code and
• Illustrates all solution steps.

### HOW TO USE THE DECIMAL TO GRAY CODE CONVERTER?

You can use the decimal to Gray code converter in two ways.

• #### USER INPUTS

You can enter a base 10 number to the input box and click on the "CONVERT" button. The result and explanations appaer below the calculator.

• #### RANDOM INPUTS

You can click on the DIE ICON next to the input box. If you use this property, a random decimal number is generated and entered to the calculator, automatically. You can see the result and explanations below the calculator. You can create your own examples and practice using this property.

• #### CLEARING THE INPUT BOX

To find the Gray codes corresponding to some other decimal numbers you can clear the input box by clicking on the CLEAR button under the input box.

• You can copy the generated solution by clicking on the "Copy Text" link, appaers under the solution panel.