Incorrect classification of fractional numbers in ranges
eemeli opened this issue · comments
According to the LDML spec, a range like n = 3..10
"only includes integers in the specified range", but cldr.extractPluralRuleFunction produces JavaScript expressions like (n % 100 >= 3 && n % 100 <= 10)
, which is incorrect: for example an n
value of 4.3 should not be accepted.
I found this as I've written my own CLDR plural rule parser, and was looking at the alternative implementations.
Thanks a lot for reporting this. Fixed for 2.3.1.