title: Cast $casts to float but only one decimal place
body: <p>In my model I added <code>$casts</code> field because I need Laravel to give me a float. My database is storing it as a string.</p>
  
  <p>So I did this in my model <code>Score.php</code>:</p>
  
  <pre><code>&lt;?php
  
  namespace App;
  
  use Illuminate\Database\Eloquent\Model;
  
  class Score extends Model
  {
      protected $fillable = [
          'value', 'comment'
      ];
  
      protected $casts = [
          'user_id' =&gt; 'int',
          'value' =&gt; 'float'
      ];
  </code></pre>
  
  <p>This is great, it casts it. However it is going wayyyy too many decimal places. I need it to go only 1 decimal place, to the tenths.</p>
  
  <p>My json endpoint data looks like this:</p>
  
  <pre><code>{
      "id": 2,
      "name": "Zed",
      "avatar_path": null,
      "score": {
          "id": 2,
          "value": 9.9000000000000003552713678800500929355621337890625,
          "comment": null,
          "user_id": 2,
          "created_at": "2018-05-03 07:03:37",
          "updated_at": "2018-05-03 07:03:41"
      }
  },
  </code></pre>
  
  <p>I want that <code>9.9......</code> to just be <code>9.9</code> is this possible?</p>
  
  <p>In my schema, I did i do it right to create it as <code>$table-&gt;decimal('value', 3, 1)</code>:</p>
  
  <pre><code>    Schema::create('scores', function (Blueprint $table) {
          $table-&gt;increments('id');
          $table-&gt;decimal('value', 3, 1)-&gt;nullable(); //////// is this correct?
  </code></pre>