Examples
A time readout in packed decimal
Read packed decimal as a number. Leading zeroes in an identifier are not retained by this numeric operation.
Input
000100100011010001010110Expected answer
123456123456
- Scheme
8 4 2 1- Packed
On- Signed
Off- Input format
Nibbles
An inventory count
Read packed decimal as a number. Leading zeroes in an identifier are not retained by this numeric operation.
Input
01000010Expected answer
4242
- Scheme
8 4 2 1- Packed
On- Signed
Off- Input format
Nibbles
A zero-prefixed identifier
Read packed decimal as a number. Leading zeroes in an identifier are not retained by this numeric operation.
Input
00000000000100100011Expected answer
123123
- Scheme
8 4 2 1- Packed
On- Signed
Off- Input format
Nibbles
An all-nine counter boundary
Read packed decimal as a number. Leading zeroes in an identifier are not retained by this numeric operation.
Input
1001100110011001Expected answer
99999999
- Scheme
8 4 2 1- Packed
On- Signed
Off- Input format
Nibbles
A decimal price without the point
Read packed decimal as a number. Leading zeroes in an identifier are not retained by this numeric operation.
Input
0001001010011001Expected answer
12991299
- Scheme
8 4 2 1- Packed
On- Signed
Off- Input format
Nibbles
default 0
Input
0000Expected answer
JSON00
- Scheme
8 4 2 1- Packed
On- Signed
Off- Input format
Nibbles
Excess-3, unpacked, unsigned
Input
00000100 00000101 00000110 00000111 00001000 00001001 00001010 00001011 00001100 00000011Expected answer
JSON12345678901234567890
- Scheme
Excess-3- Packed
Off- Signed
Off- Input format
Nibbles
packed, signed bytes
Input
00000001 00100011 01000101 01100111 10001001 00001101Expected answer
JSON-1234567890-1234567890
- Scheme
8 4 2 1- Packed
On- Signed
On- Input format
Bytes
Format reference: From BCD background and specification