title: Ruby on Rails: Make Float Value to be limited to 5 decimal places
body: <p>I have a variable in my code which accepts float type values. I want my field to be able to accept values up to 5 decimal places (0.00007). How can i do it in rails </p>
  
  <pre><code>&lt;%= user_fields.text_field :conversion_rate, required: true, maxlength: 8 %&gt;
  </code></pre>
  
  <p>i read somewhere about using <code>:step</code> but it is not working for my code. </p>
  
  <p>Any help is appreciated</p>