diff options
author | RaindropsSys <contact@minteck.org> | 2023-05-16 22:17:15 +0200 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-05-16 22:17:15 +0200 |
commit | 98a84f3aa735f31b08e807c8a4f0549742cbd1b0 (patch) | |
tree | 9a510d41197d6af646f1ee0bdbf261437211f1bc /pages/api/money/accounts.php | |
parent | 60f7da42c41b35b44fa397397a5e4bccd6039d45 (diff) | |
download | pluralconnect-98a84f3aa735f31b08e807c8a4f0549742cbd1b0.tar.gz pluralconnect-98a84f3aa735f31b08e807c8a4f0549742cbd1b0.tar.bz2 pluralconnect-98a84f3aa735f31b08e807c8a4f0549742cbd1b0.zip |
Updated 8 files (automated)
Diffstat (limited to 'pages/api/money/accounts.php')
-rw-r--r-- | pages/api/money/accounts.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pages/api/money/accounts.php b/pages/api/money/accounts.php index 22d8c77..9f85323 100644 --- a/pages/api/money/accounts.php +++ b/pages/api/money/accounts.php @@ -58,7 +58,7 @@ foreach ($accounts as $index => $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; $obj["users"]["cloudburst"]["accounts"][] = $acc; } @@ -84,7 +84,7 @@ foreach ($accounts as $index => $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"] = null; $obj["users"]["raindrops"]["accounts"][] = $acc; |