Re: modulo operator bug? - Mailing list pgsql-bugs

From Tom Lane
Subject Re: modulo operator bug?
Date
Msg-id 25172.984584484@sss.pgh.pa.us
Whole thread Raw
In response to modulo operator bug?  (Kemal Bayram <kemal@corenetworks.co.uk>)
Responses Re: modulo operator bug?
List pgsql-bugs
Kemal Bayram <kemal@corenetworks.co.uk> writes:
> from psql:
> kemal=# select 0.99 % 0.50;
>  ?column?
> ----------
>      0.04
> (1 row)

> Am I missing something fundemental here or is this indeed a bug?

Looks like a bug to me too.  mod_var shouldn't be using tmp.rscale,
I think.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Various bugs with PG7.1 8th March snapshot on Solaris 8 INTEL
Next
From: Tom Lane
Date:
Subject: Re: modulo operator bug?