The pjs.dec() API converts a value to a packed decimal number.
...
- Value / field
- Total length (optional)
- Decimal places - number of decimal place; does not add to the total length (optional)
- Half-adjust - if true, the number will be half-adjusted or rounded (optional)
...
Examples
Example 1: char -> packed decimal
...