Skip to content

2.18.1

Latest

Choose a tag to compare

@bpierre bpierre released this 02 Nov 21:32
05cc240

This version fixes rounding carries for negative numbers and preserves fractional digits when formatting with non-Latin numbering systems.

dn.toString([-199n, 2], 0); // "-2" (previously "-0")
dn.format([123456n, 2], { locale: "ar-EG" }); // "١٬٢٣٤٫٥٦" (previously "١٬٢٣٤")

It also fixes compact notation in languages that put the label before the number, and improves decimal arithmetic and repeated locale formatting performance.

See #28, #31, and #32 for details.