title: Ruby/Rails - Converting an integer into a float excluding existing zeros
body: <p>There must be a simple way to achieve this, I have an DB field containing an integer and I want to reformat it into a float to display. </p>
  
  <p>As an integer my value looks like <code>6500</code> and I want it to display as <code>65.00</code></p>
  
  <p>Within my model I have attempted to achieve this by creating the following method</p>
  
  <pre><code>def get_payment_amount_as_number
    amount = self.payment_amount
    return '%.02f' % self.payment_amount.to_f
  end
  </code></pre>
  
  <p>Which results in the following being displayed: <code>6500.00</code></p>
  
  <p>What would the best approach be to either strip the initial zeroes or to simply insert a decimal point?</p>
  
  <p>Whilst I imagine this a ruby related question, I am not sure if rails has a handy helper already in place?</p>
  
  <p>Thank you.</p>