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