** For 2n-digit fixed-point decimal value, with n-digit integer part and n-digit fractional part, what is the minimum number of bits needed to represent in unsigned fixed-point binary?

BCD

Gray code: only one bit changes at at time, for one cycle it is less error prone compared to straight coded binary. When more bits change at once, it can cause brief mismatches leading to wrong intermediate states, breaking the cycle.

ASCII code: 7-bit code. N-digit decimal number requires 7N-bits in ASCII.

Converting ASCII to hex: