From: | Robert Treat <xzilla(at)users(dot)sourceforge(dot)net> |
---|---|
To: | "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com> |
Cc: | Jochen "Westland [invigo]" <jochen(dot)westland(at)invigo(dot)de>, "'pgsql-hackers(at)postgresql(dot)org'" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: round() function wrong? |
Date: | 2003-10-24 19:07:41 |
Message-ID: | 1067022461.2070.14928.camel@camel |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, 2003-10-24 at 13:53, scott.marlowe wrote:
> On Wed, 22 Oct 2003, Jochen Westland [invigo] wrote:
>
> > Hi All,
> > i'm running Postgresql 2.2x, so i am not quitse sure wether the bug i am reporting is already fixed
> > in newer versions or not.
> >
> > In my version
> > select round(2.5); returns 2;
> > select round(2.5000001) returns 3;
> >
> > refering to my math professor thats wrong, at least in germany.
> > select round(2.5); should return 3
>
> I just tried that on my 7.2.4 and 7.4 beta 4 machines and I get 2 for
> round(2.5)
>
architecture dependent?
qqq74=# select round(2.5), version();
round | version
-------+----------------------------------------------------------------
3 | PostgreSQL 7.4beta4 on i686-pc-linux-gnu, compiled by GCC 2.96
(1 row)
qqq74=# \q
[rob(at)camel bin]$ uname -a
Linux camel 2.4.20-20.7 #1 Mon Aug 18 15:00:59 EDT 2003 i686 unknown
[rob(at)camel bin]$
Robert Treat
--
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL
From | Date | Subject | |
---|---|---|---|
Next Message | Marko Karppinen | 2003-10-24 19:09:58 | Re: Call for port reports |
Previous Message | Marko Karppinen | 2003-10-24 19:00:00 | Re: Call for port reports |