From b02115bf75b3394a8cc0e234ffac1c7bdb698aa1 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Tue, 9 May 2023 11:41:41 +0200 Subject: [PATCH] Prepare the use of ceil() instead of floor(). --- library/src/calculator_functions.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/src/calculator_functions.cpp b/library/src/calculator_functions.cpp index f7cb568..97e0b2e 100644 --- a/library/src/calculator_functions.cpp +++ b/library/src/calculator_functions.cpp @@ -509,5 +509,6 @@ double Calculator::GetCostFromDuration(Configuration* cfg, uint8_t payment_optio double ret_val = total_cost; total_cost = 0.0f; - return floor(ret_val); + // return ceil(ret_val); + return floor(ret_val); }