保留 2 位小数

This commit is contained in:
iVampireSP.com 2022-11-21 11:57:39 +08:00
parent 682a8e7d02
commit 33c6efe1e8
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -13,7 +13,7 @@
<td>{{ $year }}</td>
@for ($i = 1; $i < 13; $i++)
<td @if (($months[$i]['should_balance'] ?? 0) > 0) class="text-danger" @endif>{{ $months[$i]['should_balance'] ?? 0 }}
<td @if (($months[$i]['should_balance'] ?? 0) > 0) class="text-danger" @endif>{{ round(($months[$i]['should_balance'] ?? 0), 2) ?? 0 }}
</td>