File tree Expand file tree Collapse file tree
WordPress/src/main/java/org/wordpress/android/ui/stats/refresh/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import org.wordpress.android.ui.stats.refresh.lists.sections.BlockListItem.LineC
77import org.wordpress.android.util.LocaleManagerWrapper
88import org.wordpress.android.util.text.PercentFormatter
99import org.wordpress.android.viewmodel.ResourceProvider
10+ import java.math.RoundingMode.HALF_UP
1011import java.text.DecimalFormat
1112import java.util.TreeMap
1213import javax.inject.Inject
@@ -197,7 +198,7 @@ class StatsUtils @Inject constructor(
197198 0L -> " ∞"
198199 else -> {
199200 val percentageValue = difference.toFloat() / previousValue
200- percentFormatter.format(percentageValue)
201+ percentFormatter.format(value = percentageValue, rounding = HALF_UP )
201202 }
202203 }
203204 val formattedDifference = mapLongToString(difference, isFormattedNumber)
You can’t perform that action at this time.
0 commit comments