The BUNPKn process converts packed format numbers to standard decimal format. The number of digits to place after the decimal point is specified by the number n in the process name.
The number specified in the process name must be between one and nine.
Note: Packed numbers without decimals should be converted with process BUNPK.
BUNPKn works in two phases:
Table 232 BUNPKn – Convert Packed Numbers Including Decimals Example
PROCESS Name |
Input |
Output |
---|---|---|
BUNPK2 |
Hex‘123456’ |
1234.56 |
BUNPK2 |
Hex‘12345C’ |
123.45 |
BUNPK2 |
Hex‘12345D’ |
-123.45 |
BUNPK5 |
Hex‘12345C’ |
0.12345 |
BUNPK7 |
Hex‘12345C’ |
0.0012345 |
Parent Topic |