Skip to content

v1.4.3

Latest

Choose a tag to compare

@github-actions github-actions released this 28 Sep 21:37
  • Fixed half-cent rounding. Math.round(n * 100) / 100 turns
    402.50 × 19% (76.475) into 76.47, because 76.475 * 100 is
    7647.499999999999, so validateInput rejected the correctly rounded
    76.48 (BR-CO-17). Amounts are now rounded half away from zero on a
    noise-free value and compared in integer cents, in the validator and in
    the XML builder alike. Reported by @johannesspohr (#21).