diff --git a/include/utils.hpp b/include/utils.hpp index f9384827a..f40f9c3c1 100644 --- a/include/utils.hpp +++ b/include/utils.hpp @@ -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;