|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mro.util.Round
public class Round
Round is a class for rounding doubles of to significant figures. 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.
Constructor Summary | |
---|---|
Round()
|
Method Summary | |
---|---|
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 |
round(double d,
java.lang.String s)
Not very good. |
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)
|
private static double |
roundSmall(double d,
long numOfFigures)
|
static java.lang.String |
roundToTrimmedString(double d,
java.lang.String s)
Not very good. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Round()
Method Detail |
---|
public static double round(double d, java.lang.String s)
public static java.lang.String roundToTrimmedString(double d, java.lang.String s)
public static double roundDecimals(double d, long numOfDecimals)
public static java.lang.String roundDecimalsToTrimmedString(double d, long numOfDecimals)
private static double roundSmall(double d, long numOfFigures)
public static double round(double d, long numOfFigures)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |