title: Can't convert string to float in PHP - Laravel 5.2
body: <p>I have a hidden field with a value. Since it's a hidden field my value is a string. In my database the value is stored as a decimal field with 2 point precision.</p>
  
  <p><strong>View</strong></p>
  
  <pre><code>&lt;tr class="grand-total"&gt;
     &lt;th&gt;Total incl. 21% BTW:&lt;/th&gt;
     &lt;?php $total = number_format($cartTotal, 2, ',', '') ?&gt;
      &lt;td&gt;&lt;strong class="grey-color"&gt;&amp;euro;{{$total}}&lt;/strong&gt;&lt;/td&gt;
   &lt;/tr&gt;
  
   &lt;input type="hidden" name="total" value={{$total}}&gt;
  </code></pre>
  
  <p><strong>Controller</strong></p>
  
  <p>When my total is, for example, €10.95, I get €10.00.</p>
  
  <p>Things I have tried:</p>
  
  <pre><code>(float)$request-&gt;total
  
  floatval($request-&gt;total)
  
  floatval($request-&gt;total * 1.00)
  </code></pre>
  
  <p>But these all return €10. </p>