X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata-out.c;h=c1f3ff8120feaa93c13844c4c280ed87babe4b1c;hb=b70dc1a6b7b15967ceb111f80dff65c44f0fac57;hp=cc1292e5e262279b44cae19576d3f44e678849bc;hpb=44e620e0acb66c836578e924fa005e463cc10b3c;p=pspp diff --git a/src/data-out.c b/src/data-out.c index cc1292e5e2..c1f3ff8120 100644 --- a/src/data-out.c +++ b/src/data-out.c @@ -24,7 +24,6 @@ #include #include #include -#include "approx.h" #include "error.h" #include "format.h" #include "julcal/julcal.h" @@ -1189,7 +1188,7 @@ try_F (char *dst, const struct fmt_spec *fp, double number) n_int = 0; /* Avoid printing `-.000'. 7/6/96. */ - if (approx_eq (number, 0.0)) + if (mag < EPSILON) number = 0.0; } else @@ -1198,7 +1197,7 @@ try_F (char *dst, const struct fmt_spec *fp, double number) digits in floor(number), including any sign. */ for (;;) { - if (mag >= power10[n_int]) /* Should this be approx_ge()? */ + if (mag >= power10[n_int]) { assert (delta[j]); n_int += delta[j++];