I’m converting a binary file and I do not fin how to convert a 3 bytes date. it seems to be int16, because int32 and int64 trigger " index out of range".
But I do not find how to find my date.
These data in hexa 750C1B should be the day before yesterday (27th)
But what is C and A? C is typically a positive sign in BCD. A is a decimal point maybe? If so then this is indeed “+02.10” but that’s mostly a guess to fit the data.
The same system as above would make this 4.74 plus a few F nibbles that mean “something”, maybe just padding, not 3.72 as you expect. Or maybe your expectation is wrong, but decoding something with an unknown format and incorrect data on what it’s supposed to mean is tricky.
And now I’m curious. What is the source of the file - an old mainframe somewhere?
The two examples are also curiously different. One uses padding (if that is what it is) while the other has a leading zero. Why add an extra byte of padding when the first example doesn’t? Odd.