title: Laravel - Number with 4 decimals
body: <p>I want to store 1 number with 4 decimals, in my database.</p>
  
  <p>If i use <strong>float</strong> i can add only 2 decimals</p>
  
  <pre><code>$table-&gt;float('sell');
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/0ud10.png" rel="noreferrer"><img src="https://i.stack.imgur.com/0ud10.png" alt="enter image description here"></a></p>
  
  <hr>
  
  <p>If I try with <strong>decimal</strong> i get an error</p>
  
  <pre><code>$table-&gt;decimal('sell', 1, 4);
  </code></pre>
  
  <p>The first number must be greater than or equal to the second number.</p>
  
  <pre><code>SQLSTATE[42000]: Syntax error or access violation: 1427 For float(M,D), double(M,D) or decimal(M,D), M must be &gt;= D (column '  
  </code></pre>
  
  <p>sell'). (SQL: create table <code>customers</code> (<code>id</code> int unsigned not null auto_increment primary key, <code>sell</code> decimal(1, 4) not null,<br>
     <code>created_at</code> timestamp null, <code>updated_at</code> timestamp null) default character set utf8 collate utf8_unicode_ci)</p>
  
  <p><strong>Any help?</strong></p>
  
  <p><strong>Thanks</strong>                                       </p>