double getNonRoundingNumber(double number, int digit)
{
bool isNegative = false;
int placeholderCount = 10;
if(number < 0){
number = - number;
isNegative = true;
}
QStringList strNum = QString::number(number,'f',digit + placeholderCount).split(".");
int iNum = strNum[0].toInt();
QString dNumStr = strNum[1];
dNumStr.chop(placeholderCount);
int dNum = dNumStr.toInt();
double res = iNum*1.0 + dNum/qPow(10,digit);
if(isNegative){
res = -res;
}
return res;
}