code: public static int ifloor (float v) {
          int iv = (int)v;
          return (v >= 0f || iv == v || iv == Integer.MIN_VALUE) ? iv : (iv - 1);
      }
docs: Returns the floor of v as an integer without calling the relatively expensive
  {@link Math#floor}.