title: In Clojure or Java, how can I efficiently check whether a number is equivalent to an integer after rounding to two fractional digits?
body: <p>I basically need a function in Clojure like <code>rounds-to-int?</code> which does the equivalent of this:</p>
  <ul>
  <li>Take an arbitrary number (int, float or double)</li>
  <li>Round it to at most two decimals (i.e. <code>1.000001234 =&gt; 1.00</code>)</li>
  <li>Determine whether the digits after the decimal point are both zero</li>
  </ul>
  <p>e.g.</p>
  <pre><code>(rounds-to-int? 1) =&gt; true
  (rounds-to-int? 1.234) =&gt; false
  (rounds-to-int? 1.01) =&gt; false
  (rounds-to-int? -1.01) =&gt; false
  (rounds-to-int? 1.001) =&gt; true
  (rounds-to-int? -1.001) =&gt; true
  (rounds-to-int? 1.005) =&gt; false
  (rounds-to-int? 1.004) =&gt; true
  </code></pre>
  <p>Any suggestions appreciated!</p>