摘要:
QString removeTrailingZeros(const QString &str) { QString result = str; int size = result.size(); while (size > 0 && result.at(size - 1) == '0') { res 阅读全文
摘要:
double findMaxValue(const QList<QStringList>& list) { double maxValue = std::numeric_limits<double>::lowest(); for (const QStringList& stringList : li 阅读全文
摘要:
int countDecimalPlaces(double num) //判断小数点后的位数{ std::string str = std::to_string(num); size_t decimalPos = str.find("."); if (decimalPos == std::strin 阅读全文