title: Laravel (or PHP/MySQL?) cuts float numbers after decimal point
body: <p>Maybe this is a more general MySQL or PHP question deriving from my lack of knowledge in those fields, but...</p>
  
  <p>So I have an app on Laravel 5.4, Database is MySQL 5.7.17</p>
  
  <p>I have a column in talbe, created via migration:</p>
  
  <pre><code>$table-&gt;float('operator_price', 9, 2)-&gt;nullable()-&gt;change();
  </code></pre>
  
  <p><em>(this, according to <a href="https://laravel.com/docs/5.4/migrations#migration-structure" rel="noreferrer">Laravel docs</a>, should mean that column has type 'FLOAT' with 9 total digits and 2 after decimal point)</em>
  <a href="https://i.stack.imgur.com/9qpUx.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/9qpUx.jpg" alt="enter image description here"></a></p>
  
  <p>When user enters 1000.25 in the form field and saves - it's saved as '1000.25',</p>
  
  <p>But if user enters 10000.25 - it's saved as '10000.2'.</p>
  
  <p><strong>So it cuts the last digit if the number is over 9999.</strong></p>
  
  <p>What may be the reason and how can I fix it?</p>
  
  <p>Thank you.</p>
  
  <hr>
  
  <p>UPDATE: I've done SHOW COLUMNS FROM tours;</p>
  
  <p>and it shows that column 'operator_price' has type 'float':</p>
  
  <p><a href="https://i.stack.imgur.com/MrdYT.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/MrdYT.jpg" alt="enter image description here"></a></p>