diff --git a/src/cli/abstractcommand.cpp b/src/cli/abstractcommand.cpp index ac31d096d..c9a8d85a8 100644 --- a/src/cli/abstractcommand.cpp +++ b/src/cli/abstractcommand.cpp @@ -9,6 +9,7 @@ #include #include +#include #include /*! @@ -219,7 +220,8 @@ quint32 AbstractCommand::parseNumber(const QString &value, const QString &unit, } 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); + << qSetRealNumberPrecision(10) << '=' << DOKIT_RESULT(dbl) << '=' << (quint32)DOKIT_RESULT(dbl) + << '=' << std::llround(DOKIT_RESULT(dbl)); return (quint32)DOKIT_RESULT(dbl); } #undef DOKIT_RESULT