From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Regression failure for floats |
Date: | 2004-03-14 05:21:12 |
Message-ID: | 18440.1079241672@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> I am seeing the following regression failure for current CVS. On my OS,
> BSD/OS 4.3, it seems once you hit Infinity, you can't negate it.
> /usr/include/math.h has:
> /* Generate an overflow to create +Inf; the multiply shuts up gcc 1 */
> #define HUGE_VAL (1e250*1e250) /* IEEE: positive infinity */
> and our float4in code has:
> else if (strcasecmp(num, "-Infinity") == 0)
> val = -HUGE_VAL;
> Seems that doesn't work for me.
No, the bug is that Neil assumed isinf() would tell him the sign of an
infinity. I believe he's about to commit a patch for this and some
other bogosities.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Neil Conway | 2004-03-14 05:23:41 | Re: Regression failure for floats |
Previous Message | Neil Conway | 2004-03-14 04:51:50 | Re: Regression failure for floats |