*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/adt/timestamp.c,v 1.201 2009/06/11 14:49:04 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/adt/timestamp.c,v 1.202 2009/07/06 20:29:23 tgl Exp $
*
*-------------------------------------------------------------------------
*/
#ifdef HAVE_INT64_TIMESTAMP
fsec = (fsec / 1000) * 1000;
#else
- fsec = rint(fsec * 1000) / 1000;
+ fsec = floor(fsec * 1000) / 1000;
#endif
break;
case DTK_MICROSEC:
#ifndef HAVE_INT64_TIMESTAMP
- fsec = rint(fsec * 1000000) / 1000000;
+ fsec = floor(fsec * 1000000) / 1000000;
#endif
break;
#ifdef HAVE_INT64_TIMESTAMP
fsec = (fsec / 1000) * 1000;
#else
- fsec = rint(fsec * 1000) / 1000;
+ fsec = floor(fsec * 1000) / 1000;
#endif
break;
case DTK_MICROSEC:
#ifndef HAVE_INT64_TIMESTAMP
- fsec = rint(fsec * 1000000) / 1000000;
+ fsec = floor(fsec * 1000000) / 1000000;
#endif
break;
#ifdef HAVE_INT64_TIMESTAMP
fsec = (fsec / 1000) * 1000;
#else
- fsec = rint(fsec * 1000) / 1000;
+ fsec = floor(fsec * 1000) / 1000;
#endif
break;
case DTK_MICROSEC:
#ifndef HAVE_INT64_TIMESTAMP
- fsec = rint(fsec * 1000000) / 1000000;
+ fsec = floor(fsec * 1000000) / 1000000;
#endif
break;