in reply to Re^4: Encoding BCD
in thread Encoding BCD
Packed Binary-coded decimals are a subset of hexadecimal numbers, except that their values are to be interpreted differently. But as we're encoding strings that have only decimal digits in them, just treating these decimal digits as hexadecimal digits results in the wanted packed bcd values. If you don't trust it, just look at that the tests return the wanted values.
|
---|
In Section
Seekers of Perl Wisdom