xp tracker: Change rounding mode so that it rounds down rather than up (#9378)
This commit is contained in:
@@ -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/>"
|
||||
|
||||
Reference in New Issue
Block a user