static int iroundTowards(double a, double b) {
  ret a > b ? ifloor(a) : iceil(a);
}