Gray Code To Hexadecimal
How This Converter Works
Decodes a reflected binary Gray-code bit string containing only 0 and 1, then displays the non-negative integer in uppercase hexadecimal.
Formula or rule
Cumulatively XOR the Gray word into binary, parse the result in base 2, then format in base 16 and uppercase.
Example
- Input
- 111011
- Calculation
- Gray 111011 decodes to 101101₂ = 45₁₀ = 2D₁₆.
- Result
- 2D