Re: BUG #3387: mod on non-integer returns bad result

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gregory Stark <stark(at)enterprisedb(dot)com>
Cc: "Filip Krska" <filip(dot)krska(at)comstar(dot)cz>, pgsql-bugs(at)postgresql(dot)org, "Bruce Momjian" <bruce(at)momjian(dot)us>
Subject: Re: BUG #3387: mod on non-integer returns bad result
Date: 2007-06-15 15:42:04
Message-ID: 4623.1181922124@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Gregory Stark <stark(at)enterprisedb(dot)com> writes:
> The source of the problem is the floating point arithmetic which is used to do
> the individual steps in the long division.

I don't think so. The ultimate source of the problem is that div_var
can only report a finite number of digits.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Gregory Stark 2007-06-15 16:35:16 Re: BUG #3387: mod on non-integer returns bad result
Previous Message Tom Lane 2007-06-15 14:15:50 Re: BUG #3387: mod on non-integer returns bad result