Need some python help (or maybe C )

Ben Duncan bend at linux4ms.net
Sat Dec 13 09:40:58 PST 2008


I have a hex value as x'000123456D". It is a COMP-3 (Binary coded decimal)
for a cobol program. That says to me and is in actuality the number 123456-,
The LAST nibble D is negative and F or C would be postive.

I need to get this to a "integer" or a string.

Any ideas on this one ?

-- 
Ben Duncan - Business Network Solutions, Inc. 336 Elton Road  Jackson MS, 39212
"Never attribute to malice, that which can be adequately explained by stupidity"
        - Hanlon's Razor




More information about the Linux-users mailing list