1
0
mirror of synced 2025-02-20 04:01:01 +01:00

Truncate file size to 2 digits after comma

This commit is contained in:
WerWolv 2020-11-23 00:22:51 +01:00
parent f0eba69c4a
commit 6a38f1e9f3

View File

@ -65,7 +65,7 @@ namespace hex {
break;
}
std::string result = std::to_string(value);
std::string result = hex::format("%.2f", value);
switch (unitIndex) {
case 0: result += " Bytes"; break;