Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^5: Encoding BCD

by Corion (Pope)
on Feb 28, 2009 at 08:32 UTC ( #747105=note: print w/ replies, xml ) Need Help??


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.


Comment on Re^5: Encoding BCD

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://747105]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2014-04-24 11:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (565 votes), past polls