Gray Code To Decimal
Reverse Conversion
How This Converter Works
Decodes a binary-looking Gray code to a decimal integer; the input is not trimmed before validation.
Formula or rule
Cumulatively XOR Gray bits to recover binary, then parse that binary string in base 2 and format in base 10.
Example
- Input
- 1111
- Calculation
- Gray 1111 decodes cumulatively to binary 1010; 1010₂ = 10₁₀.
- Result
- 10