int roundTo(double dValue){ int iValue = static_cast<int>(dValue); return ((dValue - iValue) > 0)? iValue + 1: iValue;}