net.sf.colossus.util
Class CompareDoubles

java.lang.Object
  extended by net.sf.colossus.util.CompareDoubles

public class CompareDoubles
extends java.lang.Object


Constructor Summary
CompareDoubles()
           
 
Method Summary
static boolean almostEqual(double d1, double d2)
          Returns true if the two given doubles are basically equal (comparing difference to very small value to get rid of rounding issues)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompareDoubles

public CompareDoubles()
Method Detail

almostEqual

public static boolean almostEqual(double d1,
                                  double d2)
Returns true if the two given doubles are basically equal (comparing difference to very small value to get rid of rounding issues)

Parameters:
d1 - First double value
d2 - Second double value
Returns:
boolean whether they are basically equal value or not