Skip to content

Localize version 1.4.2

Choose a tag to compare

@kipcole9 kipcole9 released this 28 Oct 05:25
· 62 commits to main since this release

[1.4.2] — October 27th, 2026

Fixed

  • :rounding_priority :more_precision and :less_precision compare both digit bounds even when only one is given, a missing bound taking its ECMA-402 default, and break ties as ECMA-402 does; compact formats follow it too. Checked against 11,392 Intl.NumberFormat results; thanks to @etareduction for the report, closes #66.

  • A defaulted fraction bound follows ECMA-402: a currency's max_fractional_digits: 0 writes "$1,235", not "$1,235.00", and a percent keeps a min_fractional_digits it was given. A percent with significant digits writes "50%" for 0.5, not "50.0%".

  • Localize.Number.to_string/2 keeps a caller's :maximum_significant_digits and :minimum_significant_digits in a compact format, where 1.4.0 replaced them with the two-significant-digit compact default. A rounding carry to the next magnitude is checked at that precision; thanks to @etareduction for the report, closes #64.