Gray code to binary integer calculator
Decode a reflected Gray-code integer back to its binary integer value. Enter your values below to see the result and method.
inputs.
Related calculators
These tools cover nearby questions while keeping this page focused on its own calculation.
How to use this calculator
Free Gray code to binary integer calculator. Decode a reflected Gray-code integer back to its binary integer value. Formula, example, and assumptions explained.
- Enter Gray code integer. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Define the system or input
Decode a reflected Gray-code integer back to its binary integer value.
Inputs and units
- Gray code integer: Nonnegative integer in standard binary-reflected Gray code, within the supported 32-bit range.
Calculation method and example
Repeatedly XOR Gray code with right-shifted copies.
Gray code 15 decodes to integer 10.
Interpreting the output
The output is the ordinary binary integer represented by the entered reflected Gray code; it is a decoding result, not a hardware-performance measure.
Assumptions and limitations
Uses nonnegative 32-bit integers and the standard binary-reflected Gray code convention.
Frequently asked questions
What should I enter for this computer science calculator?
Provide Gray code integer. The input format and units determine how to interpret the result.
Does this include every implementation overhead?
No. Uses nonnegative 32-bit integers and the standard binary-reflected Gray code convention.
When should I encode a binary integer as Gray code?
The encoder produces a reflected Gray representation in which adjacent sequence values differ by one bit. This page decodes Gray code back to an ordinary binary integer.
How do I use the Gray code to binary integer calculator?
Enter Gray code integer. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Gray code to binary integer?
Repeatedly XOR Gray code with right-shifted copies. Gray code 15 decodes to integer 10.
Read the calculation methodology and privacy policy.