Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The pjs.dec() API converts a value to a packed decimal number.

...

  1. Value / field
  2. Total length (optional)
  3. Decimal places - number of decimal place; does not add to the total length (optional)
  4. Half-adjust - if true, the number will be half-adjusted or rounded (optional)

...

Examples
Example 1: char -> packed decimal

...