Closed
Description
Request summary
Development of operations to convert data to and from the BCD format.
Arguments
- Option to specify that the output be uncompressed or packed
Example input and output
Input | Output |
---|---|
0 | 0000 |
1 | 0001 |
2 | 0010 |
8 | 1000 |
Resources
https://en.wikipedia.org/wiki/Binary-coded_decimal
Optional extensions
Add the capability to support different types of BCD encoding as specified in the Wikipedia entry or elsewhere.