code: public static long floor(SoyValue arg) {
      if (arg instanceof IntegerData) {
        return ((IntegerData) arg).longValue();
      } else {
        return (long) Math.floor(arg.floatValue());
      }
    }
docs: Returns the largest (closest to positive infinity) integer value that is less than or equal to
  the argument.