Small changes to formatValue

This commit is contained in:
2017-03-27 17:50:57 -04:00
parent c61834e604
commit 3dd33274e4

View File

@@ -103,6 +103,7 @@ public class NumberButtonView extends View
if (v >= 1e5) return String.format("%.0fk", v / 1e3); if (v >= 1e5) return String.format("%.0fk", v / 1e3);
if (v >= 1e4) return String.format("%.1fk", v / 1e3); if (v >= 1e4) return String.format("%.1fk", v / 1e3);
if (v >= 1e3) return String.format("%.1fk", v / 1e3); if (v >= 1e3) return String.format("%.1fk", v / 1e3);
if (v >= 1e1) return new DecimalFormat("#.#").format(v);
return new DecimalFormat("#.##").format(v); return new DecimalFormat("#.##").format(v);
} }