Skip to content

Commit

Permalink
Add more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
pcolby committed Oct 11, 2024
1 parent 5b9cdbc commit e172d76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cli/abstractcommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ quint32 AbstractCommand::parseNumber(const QString &value, const QString &unit,
for (ratio = makeRatio<R>(); 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
Expand Down

0 comments on commit e172d76

Please sign in to comment.