How to unpack COMP-3 digits using Java?
问题 I have huge mainframe file and there are some packed digits in that file. I would like to know how to unpack following digit using java? packed digit : ? I read tutorials for unpacking digits and found the following rule to count the number of bytes required to unpack digits : total_number_of_bytes = (no. of digits + 1) / 2 I wrote the following code to unpack digits : public String unpackData(String packedData, int decimalPointLocation) { String unpackedData = ""; char[] characters =