Changeset 8116 for trunk/psLib/src/db/psDB.c
- Timestamp:
- Aug 3, 2006, 5:50:56 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/db/psDB.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/db/psDB.c
r8114 r8116 12 12 * @author Joshua Hoblitt 13 13 * 14 * @version $Revision: 1.7 6$ $Name: not supported by cvs2svn $15 * @date $Date: 2006-08-04 0 2:19:37$14 * @version $Revision: 1.77 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2006-08-04 03:50:56 $ 16 16 * 17 17 * Copyright (C) 2005-2006 Joshua Hoblitt, University of Hawaii … … 1591 1591 psStringAppend(&query, "%s=%d", item->name, (int)(item->data.S32)); 1592 1592 } else if ((item->type == PS_DATA_F32) || (item->type == PS_TYPE_F32)) { 1593 psStringAppend(&query, " ABS(%s - %d) < %.6f", item->name, (int)(item->data.S32), FLT_EPSILON);1593 psStringAppend(&query, "(ABS(%s - %.8f) < %.8f)", item->name, (float)(item->data.F32), FLT_EPSILON * 10); 1594 1594 } else if ((item->type == PS_DATA_F64) || (item->type == PS_TYPE_F64)) { 1595 psStringAppend(&query, " ABS(%s - %d) < %.10f", item->name, (int)(item->data.S32), DBL_EPSILON);1595 psStringAppend(&query, "(ABS(%s - %.17f) < %.17f)", item->name, (double)(item->data.F64), DBL_EPSILON * 10); 1596 1596 } else if ((item->type == PS_DATA_BOOL) || (item->type == PS_TYPE_BOOL)) { 1597 1597 psStringAppend(&query, "%s=%d", item->name, (int)(item->data.B));
Note:
See TracChangeset
for help on using the changeset viewer.
