From e172d761ccfae231d432a51996d2416130a1ee92 Mon Sep 17 00:00:00 2001 From: Paul Colby Date: Fri, 11 Oct 2024 19:14:54 +1100 Subject: [PATCH] Add more debugging --- src/cli/abstractcommand.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cli/abstractcommand.cpp b/src/cli/abstractcommand.cpp index ad497dad3..ac31d096d 100644 --- a/src/cli/abstractcommand.cpp +++ b/src/cli/abstractcommand.cpp @@ -218,6 +218,8 @@ quint32 AbstractCommand::parseNumber(const QString &value, const QString &unit, for (ratio = makeRatio(); DOKIT_RESULT(dbl) < sensibleMinimum; ratio.num *= 1000); } qDebug() << "G" << dbl << ratio.isValid() << ratio.num << '/' << ratio.den << (quint32)DOKIT_RESULT(dbl); + qDebug() << "I" << dbl << '*' << ratio.num << '*' << R::den << '/' << ratio.den << '/' << ratio.num + << qSetRealNumberPrecision(10) << '=' << DOKIT_RESULT(dbl) << (quint32)DOKIT_RESULT(dbl); return (quint32)DOKIT_RESULT(dbl); } #undef DOKIT_RESULT