Fixed a formatting bug
Some checks are pending
CI / Foundry project (push) Waiting to run

This commit is contained in:
mic0 2024-10-25 15:58:09 +02:00
parent 4bcf23a9ac
commit eb318972b8
Signed by: mico
GPG Key ID: A3F8023524CF1C8D

View File

@ -41,7 +41,7 @@ export const toReadable = (value: bigint) => {
return value.toString();
} else {
const divided = value / suffixes[i - 1].value;
const numStr = (value % suffixes[i - 0].value).toString().slice(0, 3);
const numStr = (value % suffixes[i - 1].value).toString().slice(0, 3);
const remainder = parseInt(numStr.replace(/0+$/, ''), 10);
return `${divided.toString()}.${remainder.toString()} ${suffixes[i - 1].suffix}`;
}