Class NumericFormatPackedDecimal

java.lang.Object

public final class NumericFormatPackedDecimal extends NumericFormatCompressed
Provides a formatter that emulates COBOL's NumericFormatPackedDecimal (COMP-3) functionality in Java. Given a decimal value and specified integer and fractional digit counts, this class: 1) encodes the value into packed decimal format (two digits per byte, high-order nibble first) 2) appends a sign nibble ('C','D','F') in the low-order nibble of the last byte 3) decodes packed decimal data back into numeric values, respecting sign and scale 4) enforces correct byte length based on total digit count This implementation delivers a reliable, high-performance Java equivalent of COBOL's packed decimal format for mission-critical data-conversion workflows.