title: Simple Way To Remove Unnecessary Float Precision in Elixir?
body: <p>I have Elixir calculations returning floats like this:</p>
  
  <pre><code>0.15300000000000002
  5.140000000000005
  0.0033000000000000004
  </code></pre>
  
  <p>But I only want to display:</p>
  
  <pre><code>0.153
  5.14
  0.0033
  </code></pre>
  
  <p>I'm familiar with using...</p>
  
  <pre><code>:erlang.float_to_binary
  </code></pre>
  
  <p>...to specify decimal precision &amp; rounding options.  The problem is I don't know exactly the decimal place to set precision at before hand.</p>
  
  <p>Is there a simply way to do this?</p>