当我尝试执行以下代码时,我仍然会收到此错误:
ErrorException (E_ERROR)
Division by zero (View: C:\xampp77\htdocs\resources\views\home.blade.php)
代码:
<td class="text-right">
${!! number_format($Currency->market_cap_usd,0,',','.') !!}<br>
<small class="font-italic">{!! number_format($Currency->market_cap_usd / $globalData['BTC_price_usd'],0,',','.') !!} BTC</small>
</td>
有人可以帮助我,还是至少指向正确的方向?无法理解。
答案 0 :(得分:0)
$ globalData [&#39; BTC_price_usd&#39;]为0