mro.util
Class Round
java.lang.Object
mro.util.Round
public class Round
- extends java.lang.Object
Constructor Summary |
Round()
|
Method Summary |
static double |
oldRoundDecimals(double d,
long numOfDecimals)
|
static double |
round(double d,
long numOfFigures)
The method round(double, long) takes a double to round
and a long specifying how many significan figures one wants
and returns the figure rounded that way. |
static double |
roundDecimals(double d,
long numOfDecimals)
roundDecimals rounds the double to a number of decimals |
static java.lang.String |
roundDecimalsToTrimmedString(double d,
long numOfDecimals)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Round
public Round()
roundDecimals
public static double roundDecimals(double d,
long numOfDecimals)
- roundDecimals rounds the double to a number of decimals
roundDecimalsToTrimmedString
public static java.lang.String roundDecimalsToTrimmedString(double d,
long numOfDecimals)
oldRoundDecimals
public static double oldRoundDecimals(double d,
long numOfDecimals)
round
public static double round(double d,
long numOfFigures)
- The method round(double, long) takes a double to round
and a long specifying how many significan figures one wants
and returns the figure rounded that way.