static int roundedRatio(double a, double b) { ret iround(ratio(a, b)); } static int roundedRatio(int a, int b) { ret (a+b/2-1)/b; }