title: Clojure - round to decimal if needed
body: <p>First of all, this is <strong>not</strong> a duplicate of <a href="https://stackoverflow.com/questions/10751638/clojure-rounding-to-decimal-places">clojure-rounding-to-decimal-places</a>.</p>
  
  <p>This is almost the same question, but with a twist : I want to round the values to a <em>maximum</em> of N decimals, but not add them if they are not needed.</p>
  
  <p>Examples for 4 decimals :</p>
  
  <pre><code>0.0 =&gt; 0.0
  0.1 =&gt; 0.1
  8.6667 =&gt; 8.6667
  3.33333333 =&gt; 3.3333
  4.66666666 =&gt; 4.6667
  </code></pre>