code: public static long round(SoyValue value) {
      if (value instanceof IntegerData) {
        return value.longValue();
      } else {
        return Math.round(value.numberValue());
      }
    }
docs: Rounds the given value to the closest integer.