Searched refs:leastCommonMultiple (Results 1 – 3 of 3) sorted by relevance
630 long leastCommonMultiple = rules[0].getBaseValue(); in findFractionRuleSetRule() local632 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()
629 long leastCommonMultiple = rules[0].getBaseValue(); in findFractionRuleSetRule() local631 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()
587 int64_t leastCommonMultiple = rules[0]->getBaseValue(); in findFractionRuleSetRule() local591 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()