Skip to main content

Convert (19)₁₀ to Gray

Short answer

(19)₁₀ = (10011)₂. Keep MSB and XOR adjacent bits: 1, 1⊕0=1, 0⊕0=0, 0⊕1=1, 1⊕1=0. Result is (11010)Gray.

Convert (19)₁₀ = (?)Gray.

First (19)10=(10011)2(19)_{10} = (10011)_2 (16 + 2 + 1). Then keep the MSB and XOR adjacent bits:

G=1, 1⊕0=1, 0⊕0=0, 0⊕1=1, 1⊕1=0G = 1,\ 1\oplus0 = 1,\ 0\oplus0 = 0,\ 0\oplus1 = 1,\ 1\oplus1 = 0

Answer: (19)10=(11010)Gray(19)_{10} = (11010)_{Gray}

✓ Answer checked by Claude Opus 5.5 (high effort)

All Digital Logic chapter 1 questions →