round() function wrong? - Mailing list pgsql-hackers

From Jochen Westland [invigo]
Subject round() function wrong?
Date
Msg-id 01C39892.35DF4E20.jochen.westland@invigo.de
Whole thread Raw
Responses Re: round() function wrong?  ("scott.marlowe" <scott.marlowe@ihs.com>)
Re: round() function wrong?  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
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

regards


jochen



pgsql-hackers by date:

Previous
From: Lauri Pietarinen
Date:
Subject: Re: Dreaming About Redesigning SQL
Next
From: Jean-Henry Berevoescu
Date:
Subject: Re: Complex/elaborate user-defined base types