mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-16 19:11:59 +00:00
Merge branch 'version/4.1.5' of https://github.com/HabitRPG/habitica-android into version/4.1.5
This commit is contained in:
commit
337225cc99
1 changed files with 3 additions and 1 deletions
|
|
@ -23,7 +23,9 @@ object NumberAbbreviator {
|
|||
if (decimalCount > 0) {
|
||||
pattern = ("$pattern.").padEnd(4 + decimalCount, '#')
|
||||
}
|
||||
val formatter = DecimalFormat(pattern + abbreviationForCounter(context, counter).replace(".", ""))
|
||||
val formatter = DecimalFormat(pattern + abbreviationForCounter(context, counter)
|
||||
.replace(".", "")
|
||||
.replace(",", ""))
|
||||
formatter.roundingMode = RoundingMode.FLOOR
|
||||
return formatter.format(usedNumber)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue