Truncate file size to 2 digits after comma
This commit is contained in:
parent
f0eba69c4a
commit
6a38f1e9f3
@ -65,7 +65,7 @@ namespace hex {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string result = std::to_string(value);
|
std::string result = hex::format("%.2f", value);
|
||||||
|
|
||||||
switch (unitIndex) {
|
switch (unitIndex) {
|
||||||
case 0: result += " Bytes"; break;
|
case 0: result += " Bytes"; break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user