Gray Code to Decimal Converter
Enter a Gray code.
(
SOLUTION STEPS
The Gray code
OTHER INFORMATION
👉 Click here to see how we convert (
👉 Click here to see how we find the decimal equivalent of (
Gray code to decimal conversion is accomplished in two steps. First, we convert the Gray code to binary and then convert the binary number to decimal.
In Gray code to binary conversion, we write the most significant bit (the leftmost one) of the Gray code to the binary number, directly. To find the remaining bits of the binary number, we compare the current bit of the binary number with the next bit of the Gray code. If the leftmost n^{th} bit of the binary number is equal to the (n + 1)^{th} bit of the Gray code, we write 0 to the leftmost n^{th} position of the binary number. If they are different, we write 1 to the same location of the binary number.
Gray code to decimal converter,
You can use the Gray code to decimal converter in two ways.
You can enter a Gray code to the input box and click on the "CONVERT" button. The result and explanations appaer below the calculator.
You can click on the DIE ICON next to the input box. If you use this property, a random Gray code 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.
To find the decimal representation of some other Gray codes 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.
Even you can download the solution as an image file with .jpg extension if you click on the "Download Solution" link at the bottom of the solution panel. You can share the downloaded image file.
Gray Code to Decimal Converter