Reduce difference detection between hipadaba floats
r2034 | dcl | 2007-07-05 09:43:27 +1000 (Thu, 05 Jul 2007) | 2 lines
This commit is contained in:
@@ -436,7 +436,8 @@ int compareHdbValue(hdbValue v1, hdbValue v2){
|
||||
}
|
||||
break;
|
||||
case HIPFLOAT:
|
||||
if(ABS(v1.v.doubleValue - v2.v.doubleValue) < .01){
|
||||
if(ABS(v1.v.doubleValue - v2.v.doubleValue) < .0001)/* DFC */
|
||||
{
|
||||
return 1;
|
||||
} else {
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user