tc39/proposal-intl-numberformat-v3

Range with negative values

sffc opened this issue · 3 comments

sffc commented

I think we should throw RangeError when either of the inputs to formatRange() is negative.

new Intl.NumberFormat().formatRange(-5, -3);  // RangeError

CLDR's number range data is very limited and does not cover this case in a cohesive way. Better to forbid it, and we can add it later if we need to.

sffc commented

Possible use cases:

sffc commented

2020-10-08: We'll allow negative numbers. Adopt current behavior for negative plurals as well (always return "other").