title: Division by zero - Laravel
body: <p>When I am trying to execute following code, I still keep getting this error:</p>
  
  <pre><code>    ErrorException (E_ERROR)
  Division by zero (View: C:\xampp77\htdocs\resources\views\home.blade.php)
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>           &lt;td class="text-right"&gt;
                  ${!! number_format($Currency-&gt;market_cap_usd,0,',','.') !!}&lt;br&gt;
                  &lt;small class="font-italic"&gt;{!! number_format($Currency-&gt;market_cap_usd / $globalData['BTC_price_usd'],0,',','.')  !!} BTC&lt;/small&gt;
             &lt;/td&gt;
  </code></pre>
  
  <p>Could somebody help me, or atleast point me in right direction ? Can't figure it out.</p>