title: what is the maximum number for a ruby big decimal in rails?
body: <p>My RoR is currently giving me some problems for Bigdecimal records.</p>
  
  <p>my code is to update certain attribute with:</p>
  
  <pre><code> BigDecimal.new((income*scale).to_s)
  </code></pre>
  
  <p>For example there is a form that I scanned and its value is </p>
  
  <pre><code> 11210000000.0
  </code></pre>
  
  <p>when i print the bigdecimal it looks like:</p>
  
  <pre><code> #&lt;BigDecimal:91e2284,'0.1121E11',18(27)&gt;
  </code></pre>
  
  <p>when i look the record in mySQL db the record appears with </p>
  
  <pre><code>  Income: 9999999999
  </code></pre>
  
  <p>all the records with income less than 10 billion do not have this problem.</p>
  
  <p>What is going on?</p>