Merge pull request #609 from scorpion-26/byteconv

Fix short conversion of 1000-1023 *iB
This commit is contained in:
Jakob P. Liljenberg
2023-09-05 19:27:38 +02:00
committed by GitHub

View File

@@ -443,7 +443,7 @@ namespace Tools {
out = to_string((int)round(stod(out)));
}
if (out.size() > 3) {
out = to_string((int)(out[0] - '0') + 1);
out = to_string((int)(out[0] - '0')) + ".0";
start++;
}
out.push_back(units[start][0]);