summaryrefslogtreecommitdiff
path: root/pages/api/money/account.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/api/money/account.php')
-rw-r--r--pages/api/money/account.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/pages/api/money/account.php b/pages/api/money/account.php
index 6620733..1801b28 100644
--- a/pages/api/money/account.php
+++ b/pages/api/money/account.php
@@ -29,7 +29,7 @@ foreach ($accounts as $account) {
$acc["total"] = round(calculateFullAmount($account, true), 2);
$acc["interests"] = $account["interests"];
$acc["max"] = $account["max"];
- $acc["used_percentage"] = isset($account["max"]) ? (calculateFullAmount($account, true) / $account["max"]) * 100 : null;
+ $acc["used_percentage"] = isset($account["max"]) ? round((calculateFullAmount($account, true) / $account["max"]) * 100, 2) : null;
$acc["transactions"] = [];
foreach ($account["transactions"] as $index => $transaction) {