ICU-6291 Fix RangeConstraint.isFulfilled for 'not' & non-integers, from CLDR tests

X-SVN-Rev: 23969
This commit is contained in:
Peter Edberg 2008-05-22 06:39:44 +00:00
parent 8fed204664
commit 3d6e7a565d

View File

@ -516,7 +516,7 @@ public class PluralRules implements Serializable {
public boolean isFulfilled(double n) {
if (integersOnly && (n - (long)n) != 0.0) {
return false;
return !inRange;
}
if (mod != 0) {
n = n % mod; // java % handles double numerator the way we want