@Test public void quantityToRSDecimalStackSize() { assertEquals("0", QuantityFormatter.quantityToRSDecimalStack(0)); assertEquals("8500", QuantityFormatter.quantityToRSDecimalStack(8_500)); assertEquals("10K", QuantityFormatter.quantityToRSDecimalStack(10_000)); assertEquals("21.7K", QuantityFormatter.quantityToRSDecimalStack(21_700)); assertEquals("100K", QuantityFormatter.quantityToRSDecimalStack(100_000)); assertEquals("100.3K", QuantityFormatter.quantityToRSDecimalStack(100_300)); assertEquals("1M", QuantityFormatter.quantityToRSDecimalStack(1_000_000)); assertEquals("8.4M", QuantityFormatter.quantityToRSDecimalStack(8_450_000)); assertEquals("10M", QuantityFormatter.quantityToRSDecimalStack(10_000_000)); assertEquals("12.8M", QuantityFormatter.quantityToRSDecimalStack(12_800_000)); assertEquals("100M", QuantityFormatter.quantityToRSDecimalStack(100_000_000)); assertEquals("250.1M", QuantityFormatter.quantityToRSDecimalStack(250_100_000)); assertEquals("1B", QuantityFormatter.quantityToRSDecimalStack(1_000_000_000)); assertEquals("1.5B", QuantityFormatter.quantityToRSDecimalStack(1500_000_000)); assertEquals("2.1B", QuantityFormatter.quantityToRSDecimalStack(Integer.MAX_VALUE)); }
public static String quantityToRSDecimalStack(int quantity) { return quantityToRSDecimalStack(quantity, false); }
QuantityFormatter { public static String quantityToRSDecimalStack(int quantity) { return quantityToRSDecimalStack(quantity, false); } }
QuantityFormatter { public static String quantityToRSDecimalStack(int quantity) { return quantityToRSDecimalStack(quantity, false); }  }
QuantityFormatter { public static String quantityToRSDecimalStack(int quantity) { return quantityToRSDecimalStack(quantity, false); }  static synchronized String quantityToStackSize(long quantity); static String quantityToRSDecimalStack(int quantity); static synchronized String quantityToRSDecimalStack(int quantity, boolean precise); static synchronized long parseQuantity(String string); static synchronized String formatNumber(final long number); static synchronized String formatNumber(double number); }
QuantityFormatter { public static String quantityToRSDecimalStack(int quantity) { return quantityToRSDecimalStack(quantity, false); }  static synchronized String quantityToStackSize(long quantity); static String quantityToRSDecimalStack(int quantity); static synchronized String quantityToRSDecimalStack(int quantity, boolean precise); static synchronized long parseQuantity(String string); static synchronized String formatNumber(final long number); static synchronized String formatNumber(double number);  }