round() function wrong?

From: "Jochen Westland [invigo]" <jochen(dot)westland(at)invigo(dot)de>
To: "'pgsql-hackers(at)postgresql(dot)org'" <pgsql-hackers(at)postgresql(dot)org>
Subject: round() function wrong?
Date: 2003-10-22 09:47:02
Message-ID: 01C39892.35DF4E20.jochen.westland@invigo.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Richard Huxton 2003-10-22 10:55:55 Re: So, are we going to bump catversion for beta5, or not?
Previous Message Richard Huxton 2003-10-22 09:30:52 Automatic compat checking? (was 7.4 compatibility question)