code: public static String asIbi(long size) {
          if (size > GIBI) {
              return String.format("%.1f GiB", (size / GIBI));
          } else if (size > MIBI) {
              return String.format("%.1f MiB", (size / MIBI));
          } else if (size > KIBI) {
              return String.format("%.1f KiB", (size / KIBI));
          } else {
              return String.format("%d B", size);
          }
      }
docs: Converts a size to a {@link String} with -ibi suffixes
  
  @param size the size to convert
  @return a {@link String} representing the size