xp tracker: Change rounding mode so that it rounds down rather than up (#9378)

This commit is contained in:
jdkleuver
2019-07-23 21:22:49 +10:00
committed by Tomas Slusny
parent 2ca03ece48
commit 1f3c573a58

View File

@@ -28,6 +28,7 @@ package net.runelite.client.plugins.xptracker;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.math.RoundingMode;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Collections;
@@ -59,6 +60,11 @@ class XpInfoBox extends JPanel
{
private static final DecimalFormat TWO_DECIMAL_FORMAT = new DecimalFormat("0.00");
static
{
TWO_DECIMAL_FORMAT.setRoundingMode(RoundingMode.DOWN);
}
// Templates
private static final String HTML_TOOL_TIP_TEMPLATE =
"<html>%s %s done<br/>"