From 061a6d58e36cce4bc356956f5b0f7b920890e5e9 Mon Sep 17 00:00:00 2001 From: Frank Haverland Date: Thu, 28 Dec 2023 20:32:36 +0100 Subject: [PATCH] not extended resolution allows -1 on the lowest number --- code/components/jomjol_flowcontroll/ClassFlowPostProcessing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/components/jomjol_flowcontroll/ClassFlowPostProcessing.cpp b/code/components/jomjol_flowcontroll/ClassFlowPostProcessing.cpp index 5062fe52a..8eb93ed92 100644 --- a/code/components/jomjol_flowcontroll/ClassFlowPostProcessing.cpp +++ b/code/components/jomjol_flowcontroll/ClassFlowPostProcessing.cpp @@ -875,7 +875,7 @@ bool ClassFlowPostProcessing::doFlow(string zwtime) // Include inaccuracy of 0.2 for isExtendedResolution. if ((NUMBERS[j]->Value >= (NUMBERS[j]->PreValue-(2/pow(10, NUMBERS[j]->Nachkomma))) && NUMBERS[j]->isExtendedResolution) - // not extended resolution allows -1 on the lowest number + // not extended resolution allows -1 on the lowest digit || (NUMBERS[j]->Value >= (NUMBERS[j]->PreValue-(1/pow(10, NUMBERS[j]->Nachkomma))) && !NUMBERS[j]->isExtendedResolution)) { NUMBERS[j]->Value = NUMBERS[j]->PreValue; NUMBERS[j]->ReturnValue = to_string(NUMBERS[j]->PreValue);