Home
last modified time | relevance | path

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

/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/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/icu4c/source/i18n/
Dnfrs.cpp586 int64_t leastCommonMultiple = rules[0]->getBaseValue(); in findFractionRuleSetRule() local
590 leastCommonMultiple = util_lcm(leastCommonMultiple, rules[i]->getBaseValue()); in findFractionRuleSetRule()
592 numerator = util64_fromDouble(number * (double)leastCommonMultiple + 0.5); in findFractionRuleSetRule()
605 tempDifference = numerator * rules[i]->getBaseValue() % leastCommonMultiple; in findFractionRuleSetRule()
611 if (leastCommonMultiple - tempDifference < tempDifference) { in findFractionRuleSetRule()
612 tempDifference = leastCommonMultiple - tempDifference; in findFractionRuleSetRule()
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
Dcom.ibm.icu_4.2.1.v20100412.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...