mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Small changes to formatValue
This commit is contained in:
@@ -103,6 +103,7 @@ public class NumberButtonView extends View
|
||||
if (v >= 1e5) return String.format("%.0fk", v / 1e3);
|
||||
if (v >= 1e4) 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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user