From f5a5ba60ca01ab0bedcd5d83f637237206093716 Mon Sep 17 00:00:00 2001 From: jimishol Date: Wed, 3 Nov 2021 17:17:47 +0200 Subject: [PATCH] Fix Equipment-Instrument Settings inconsistency toward Altimeter Indicator. Altimeter Indicator seems to respect even rounding. So, if on settings appear 29.9299 it shows 29.93. Equipment-Instrument Settings do not and shows 29.92. If user sets 29.93 then settings keep the rest previous digits and shows 29.9399. So, altimeter indicator shows 29.94 but instrument settings keep the difference of 0.01 and shows 29.93. Same phenomenon happens to hpa value too. In code with '+0.05' we create even rounding and because the coversion of one unit to the other many times leaves decimals of values to end to series of 9, thus Instrument Settings keeps showing 29.929999 as 29.92, we add artificial small value 0.00001 so as to make significant digits exact. --- gui/dialogs/instruments.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/dialogs/instruments.xml b/gui/dialogs/instruments.xml index 908889926..af0b337b8 100644 --- a/gui/dialogs/instruments.xml +++ b/gui/dialogs/instruments.xml @@ -7,8 +7,8 @@