double ibox = 0;
// 检查连续条目
if (checkConsecutiveEntries(pHisDat, readnum) && checkMinConsecutiveEntries(pHisDat, readnum))
{
if (dminbox < dmaxbox)
{
ibox = (dmaxbox - dminbox)/ dminbox *100;
}
}
if (ibox>Value[1] && ibox < Value[2])
{
memset(pricetext, 0, AAAALENGTH);
sprintf_s(pricetext, AAAALENGTH, "ibox: %.2f; -code: %s,-dmaxbox: %2.f, dminbox: %.2f \n", ibox, Code, dmaxbox, dminbox);
writeSqlToFile(pricetext);
nRet = TRUE;
}
ibox: 7.22; -code: 000565,-dmaxbox: 5, dminbox: 4.99
ibox = (dmaxbox - dminbox)/ dminbox *100;
为什么ibox 计算结果为 7.22