Lines Matching refs:den
175 private static Rational scaleRatio(Rational ratio, int num, int den) {
176 int common = gcd(num, den);
178 den /= common;
181 (int)(ratio.getDenominator() * (double)den)); // saturate to int
184 static Range<Rational> scaleRange(Range<Rational> range, int num, int den) {
185 if (num == den) {
189 scaleRatio(range.getLower(), num, den),
190 scaleRatio(range.getUpper(), num, den));
199 static int divUp(int num, int den) {
200 return (num + den - 1) / den;
203 static long divUp(long num, long den) {
204 return (num + den - 1) / den;