mro.util
Class Round

java.lang.Object
  extended by 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
 

Constructor Detail

Round

public Round()
Method Detail

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.