Add new suffix statement

This commit is contained in:
M M Arif
2022-08-01 13:13:07 +05:00
parent 2ace213d83
commit 75f7835b24

View File

@@ -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);
}