Base 36 To Gray Code
Reverse Conversion
How This Converter Works
Converts a non-negative base-36 integer to its reflected binary Gray code.
Formula or rule
Remove whitespace and underscores, validate base-36 digits, convert the value n to binary, then compute Gray = n XOR (n >> 1).
Example
- Input
- 19
- Calculation
- 19₃₆ = 45₁₀ = 101101₂; 101101 XOR 010110 = 111011.
- Result
- 111011
Notes
Gray code represents non-negative integers; negative inputs are rejected.