Binary coded decimal (BCD) to Hexadecimal conversion

前端 未结 5 1618
攒了一身酷
攒了一身酷 2021-01-12 02:47

can someone explain to me how to convert BCD to Hexadecimal? For example how can i convert 98(BCD) to Hexadecimal. Thanks.

5条回答
  •  灰色年华
    2021-01-12 03:06

    I'd create a table of 256 entries, mapping all BCD bytes into their binary equivalent; you can then use hex printing of your programming language.

提交回复
热议问题