- added a more graceful way to handle more serious errors during data validation commands in order to offer more detailed error analysis

This commit is contained in:
Mark Vejvoda
2013-11-04 07:21:04 +00:00
parent 7c4c7a142b
commit 1134ad399d
13 changed files with 703 additions and 593 deletions

View File

@@ -70,6 +70,7 @@ inline T truncateDecimal(const T &value, int precision=6) {
if((T)value * (T)precNum <= MAX_INT_VALUE) {
int resultInt = (T)value * (T)precNum;
T result = (T)resultInt / precNum;
//printf("=======================\nvalue = %.10f\nresultInt: %d\nprecision: %d\nbecame: %.10f\n----------\n",value,resultInt,precision,result);
return result;
}