@Test public void testBigNumberForSize() { assertEquals("1,000", bigNumberForSize(1000)); assertEquals("1.00K", bigNumberForSize(1024)); assertEquals("1.50K", bigNumberForSize(1024 + (1024 / 2))); assertEquals("1,024.00K", bigNumberForSize(1024 * 1024 - 1)); assertEquals("1.00M", bigNumberForSize(1024 * 1024)); assertEquals("1.50M", bigNumberForSize(1024 * 1024 + (1024 * 1024 / 2))); assertEquals("1,024.00M", bigNumberForSize(1073741823)); assertEquals("1.00G", bigNumberForSize(1073741824)); assertEquals("1,024.00G", bigNumberForSize(1099511627775L)); assertEquals("1.00T", bigNumberForSize(1099511627776L)); }
public static String bigNumberForSize(long big) { return bigNumber(big, SIZE_SUFFIX, 1024); }
NumUtil { public static String bigNumberForSize(long big) { return bigNumber(big, SIZE_SUFFIX, 1024); } }
NumUtil { public static String bigNumberForSize(long big) { return bigNumber(big, SIZE_SUFFIX, 1024); }  }
NumUtil { public static String bigNumberForSize(long big) { return bigNumber(big, SIZE_SUFFIX, 1024); }  static String bigNumberForSize(long big); static String bigNumberForQuantity(long big); static String bigNumberForQuantity(double big); }
NumUtil { public static String bigNumberForSize(long big) { return bigNumber(big, SIZE_SUFFIX, 1024); }  static String bigNumberForSize(long big); static String bigNumberForQuantity(long big); static String bigNumberForQuantity(double big);  }