mirror of
https://github.com/gitnex-org/gitnex.git
synced 2026-07-16 01:50:11 -05:00
Add new suffix statement
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user