Search code examples
python-3.xhexencodebcd

How can I convert a hex value 81869400 into a decimal value 948681000


I have this as hex = 81869400 and I need this in decimal = 948681000

In the description I can see that the coding is a BCD8. I have invested a lot of time but cannot find the way.


Solution

  • Found the solution thanks to some comments. BCD coding means the value is not in hex but in decimals coded "looking" its hex or binary, but its not.

    So it was just needed to have the right ordering. Then in another part of the message there was a factor mentioned.

    By ordering and factor it was possible to create the correct values.