Changeset 8114
- Timestamp:
- Aug 3, 2006, 4:19:37 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
r8113 r8114 12 12 * @author Joshua Hoblitt 13 13 * 14 * @version $Revision: 1.7 5$ $Name: not supported by cvs2svn $15 * @date $Date: 2006-08-04 02:1 6:58$14 * @version $Revision: 1.76 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2006-08-04 02:19:37 $ 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) < % f.6", item->name, (int)(item->data.S32), FLT_EPSILON);1593 psStringAppend(&query, "ABS(%s - %d) < %.6f", item->name, (int)(item->data.S32), FLT_EPSILON); 1594 1594 } else if ((item->type == PS_DATA_F64) || (item->type == PS_TYPE_F64)) { 1595 psStringAppend(&query, "ABS(%s - %d) < % f.10", item->name, (int)(item->data.S32), DBL_EPSILON);1595 psStringAppend(&query, "ABS(%s - %d) < %.10f", item->name, (int)(item->data.S32), DBL_EPSILON); 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.
