The min and max value for the Lcd are created with String.format("%....f") and therefor correctly rounded HALF_UP.
This is inconsistent with the main value display which is created in Helper#formatNumber which truncates the value to the wanted amount of digits before formatting it.
So the displayed values might be off in the last displayed digit.
What is the rationale behind truncating values?
In general I would prefer rounding over truncation for a better accuracy of the shown value, but the approach should be consistent at least.
The min and max value for the Lcd are created with String.format("%....f") and therefor correctly rounded HALF_UP. This is inconsistent with the main value display which is created in Helper#formatNumber which truncates the value to the wanted amount of digits before formatting it. So the displayed values might be off in the last displayed digit. What is the rationale behind truncating values? In general I would prefer rounding over truncation for a better accuracy of the shown value, but the approach should be consistent at least.