static int ifloor(double d) { ret (int) Math.floor(d); }