+2000-05-10 Dirk Herrmann <D.Herrmann@tu-bs.de>
+
+ * numbers.c: No need to include unif.h.
+
+ (IS_INF): Returned to old test for now: x == x + 1 will not work
+ for large numbers due to rounding errors.
+ Thanks to Kalle Olavi Niemitalo.
+
2000-05-09 Dirk Herrmann <D.Herrmann@tu-bs.de>
* numbers.c (scm_divbigdig): Removed outdated comment.
#include <stdio.h>
#include <math.h>
#include "libguile/_scm.h"
-#include "libguile/unif.h"
#include "libguile/feature.h"
#include "libguile/ports.h"
#include "libguile/root.h"
/* IS_INF tests its floating point number for infiniteness
*/
#ifndef IS_INF
-#define IS_INF(x) ((x) == (x) + 1)
+#define IS_INF(x) ((x) == (x) / 2)
#endif
/* Return true if X is not infinite and is not a NaN