Re: BUG #3387: mod on non-integer returns bad result - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #3387: mod on non-integer returns bad result
Date
Msg-id 4623.1181922124@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #3387: mod on non-integer returns bad result  (Gregory Stark <stark@enterprisedb.com>)
Responses Re: BUG #3387: mod on non-integer returns bad result
List pgsql-bugs
Gregory Stark <stark@enterprisedb.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

pgsql-bugs by date:

Previous
From: Gregory Stark
Date:
Subject: Re: BUG #3387: mod on non-integer returns bad result
Next
From: Gregory Stark
Date:
Subject: Re: BUG #3387: mod on non-integer returns bad result