Home
last modified time | relevance | path

Searched refs:leastCommonMultiple (Results 1 – 3 of 3) sorted by relevance

/external/icu/android_icu4j/src/main/java/android/icu/text/
DNFRuleSet.java630 long leastCommonMultiple = rules[0].getBaseValue(); in findFractionRuleSetRule() local
632 leastCommonMultiple = lcm(leastCommonMultiple, rules[i].getBaseValue()); in findFractionRuleSetRule()
634 long numerator = Math.round(number * leastCommonMultiple); in findFractionRuleSetRule()
647 tempDifference = numerator * rules[i].getBaseValue() % leastCommonMultiple; in findFractionRuleSetRule()
652 if (leastCommonMultiple - tempDifference < tempDifference) { in findFractionRuleSetRule()
653 tempDifference = leastCommonMultiple - tempDifference; in findFractionRuleSetRule()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DNFRuleSet.java629 long leastCommonMultiple = rules[0].getBaseValue(); in findFractionRuleSetRule() local
631 leastCommonMultiple = lcm(leastCommonMultiple, rules[i].getBaseValue()); in findFractionRuleSetRule()
633 long numerator = Math.round(number * leastCommonMultiple); in findFractionRuleSetRule()
646 tempDifference = numerator * rules[i].getBaseValue() % leastCommonMultiple; in findFractionRuleSetRule()
651 if (leastCommonMultiple - tempDifference < tempDifference) { in findFractionRuleSetRule()
652 tempDifference = leastCommonMultiple - tempDifference; in findFractionRuleSetRule()
/external/icu/icu4c/source/i18n/
Dnfrs.cpp587 int64_t leastCommonMultiple = rules[0]->getBaseValue(); in findFractionRuleSetRule() local
591 leastCommonMultiple = util_lcm(leastCommonMultiple, rules[i]->getBaseValue()); in findFractionRuleSetRule()
593 numerator = util64_fromDouble(number * (double)leastCommonMultiple + 0.5); in findFractionRuleSetRule()
606 tempDifference = numerator * rules[i]->getBaseValue() % leastCommonMultiple; in findFractionRuleSetRule()
612 if (leastCommonMultiple - tempDifference < tempDifference) { in findFractionRuleSetRule()
613 tempDifference = leastCommonMultiple - tempDifference; in findFractionRuleSetRule()