Binary coded decimal (BCD) to Hexadecimal conversion

前端 未结 5 1570
攒了一身酷
攒了一身酷 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:15

    BCD is a subset of hexadecimal, so there is no conversion necessary -- any given BCD value is identical to the corresponding hexadecimal value. For example, '98' in BCD is 10011000, which is the same as 98 in hexadecimal

提交回复
热议问题