Perl Monk, Perl Meditation | |
PerlMonks |
Convert binary to decimal problemby sxmwb (Pilgrim) |
on Apr 06, 2008 at 16:11 UTC ( [id://678654]=perlquestion: print w/replies, xml ) | Need Help?? |
sxmwb has asked for the wisdom of the Perl Monks concerning the following question:
I have a file that contains frequencies stored in a 3 byte format and I am trying to convert them from hex to decimal.
From a representation viewpoint these byte formats equal these numbers: I have tried pack and unpack but no luck. I think this format is little endian format since other numbers such as counters 0x0300 is actually 3.
Anyway, I do not have any ideas how to do this conversion. I would appreciate any guidance you would provide. Thanks Mike
Back to
Seekers of Perl Wisdom
|
|