title: Compare decimal number for a given precision
body: <p>I'm trying to compare two coordinates. The idea is that two coordinates are &quot;the same&quot; if they have equal values up to 5 decimals.</p>
  <p>That means:</p>
  <pre><code>Decimal(45.00001) =/= Decimal(45.00002)
  Decimal(45.000001) == Decimal(45.000002)
  </code></pre>
  <p>because the first 5 decimals are the same</p>
  <p>Is there a built in way to do that or do I need to do a string splitting and comparison?</p>