are equal if they diff by 1. This causes the <code>toEqual</code> matcher to succeed.</p>
<h2 id="floating-point-precision">Floating-point precision</h2>
<p>When floating-point values (<code>Float</code> and <code>Double</code>) are compared, Intent compares up
to a certain precision, defined as the number of decimals that must match.</p>
<p>Here&rsquo;s an example where a custom precision is used:</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;ta