it, wait,
wait `  
  
**Constructor Detail**  
---  
  
###  IsCloseTo

    
    
    public **IsCloseTo**(double value,
                     double error)

**Method Detail**  
---  
  
###  matchesSafely

    
    
    public boolean **matchesSafely**(java.lang.Double item)

     **Description copied from class:` [ TypeSafeMatcher ](../../../org/hamcrest/TypeSafeMatcher.html#matchesSafely\(T\)) ` **
     Subclasses should implement this. The item will already have been checked for the specific type and will never be null. 

    

**Specified by:**      ` [ matchesSafely
](../../../org/hamcrest/TypeSafeMatcher.html#matchesSafely\(T\)) ` in class `
[ TypeSafeMatcher ](../../../org/hamcrest/TypeSafeMatcher.html "class in
org.hamcrest") <java.lang.Double> `

    

* * *

###  describeMismatchSafely

    
    
    public void **describeMismatchSafely**(java.lang.Double item,
                                       [Description](../../../org/hamcrest/Description.html "interface in org.hamcrest") mismatchDescription)

     **Description copied from class:` [ TypeSafeMatcher ](../../../org/hamcrest/TypeSafeMatcher.html#describeMismatchSafely\(T, org.hamcrest.Description\)) ` **
     Subclasses should override this. The item will already have been checked for the specific type and will never be null. 

    

**Overrides:**      ` [ describeMismatchSafely
](../../../org/hamcrest/TypeSafeMatcher.html#describeMismatchSafely\(T,
org.hamcrest.Description\)) ` in class ` [ TypeSafeMatcher
](../../../org/hamcrest/TypeSafeMatcher.html "class in org.hamcrest")
<java.lang.Double> `

    

* * *

###  describeTo

    
    
    public void **describeTo**([Description](../../../org/hamcrest/Description.html "interface in org.hamcrest") description)

     **Description copied from interface:` [ SelfDescribing ](../../../org/hamcrest/SelfDescribing.html#describeTo\(org.hamcrest.Description\)) ` **
     Generates a description of the object. The description may be part of a a description of a larger object of which this is just a component, so it should be worded appropriately. 

    

**Parameters:**      ` description ` \- The description to be built or
appended to.

* * *

###  closeTo

    
    
    public static [Matcher](../../../org/hamcrest/Matcher.html "interface in org.hamcrest")<java.lang.Double> **closeTo**(double operand,
                                                    double error)

     Creates a matcher of ` Double ` s that matches when an examined double is equal to the specified ` operand ` , within a range of +/- ` error ` . 

For example:

    
    
    assertThat(1.03, is(closeTo(1.0, 0.03)))

    

**Parameters:**      ` operand ` \- the expected value of matching doubles
` error ` \- the delta (+/-) within which matches will be allowed

* * *

|  [ **Overview** ](../../../overview-summary.html) |  [ **Package** ](package-summary.html) |  **Class** |  [ **Use** ](class-use/IsCloseTo.html) |  [ **Tree** ](package-tree.html) |  [ **Deprecated** ](../../../deprecated-list.html) |  [ **Index** ](../../../index-all.html) |  [ **Help** ](../../../help-doc.html)  
---|---|---|---|---|---|---|---  
__  
[ **PREV CLASS** ](../../../org/hamcrest/number/BigDecimalCloseTo.html "class in org.hamcrest.number") [ **NEXT CLASS** ](../../../org/hamcrest/number/OrderingComparison.html "class in org.hamcrest.number") |  [ **FRAMES** ](../../../index.html?org/hamcrest/number/IsCloseTo.html) [ **NO FRAMES** ](IsCloseTo.html) [ **All Classes** ](../../../allclasses-noframe.html)  
SUMMARY: NESTED | FIELD |  CONSTR  |  METHOD  |  DETAIL: FIELD |  CONSTR  |  METHOD   
  
* * *