From 75f7835b24a45f82c5221712692fc39edcc6561e Mon Sep 17 00:00:00 2001 From: M M Arif Date: Mon, 1 Aug 2022 13:13:07 +0500 Subject: [PATCH] Add new suffix statement --- app/src/main/java/org/mian/gitnex/helpers/AppUtil.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/org/mian/gitnex/helpers/AppUtil.java b/app/src/main/java/org/mian/gitnex/helpers/AppUtil.java index fa6fadfc..92e9619a 100644 --- a/app/src/main/java/org/mian/gitnex/helpers/AppUtil.java +++ b/app/src/main/java/org/mian/gitnex/helpers/AppUtil.java @@ -469,6 +469,9 @@ public class AppUtil { if(value >= 3 && base < suffix.length) { return new DecimalFormat("#0.0").format(numValue / Math.pow(10, base * 3)) + suffix[base]; } + if(base >= suffix.length) { + return new DecimalFormat("#0").format(numValue / Math.pow(10, base * 2)) + suffix[4]; + } else { return new DecimalFormat("#,##0").format(numValue); }