[GENARAL] round() bug?

From: Willy-Bas Loos <willybas(at)gmail(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: [GENARAL] round() bug?
Date: 2014-04-15 11:08:24
Message-ID: CAHnozTih85ea8HHDoSvK0fSJQkSOY=E76Acsi1FFZyiNM4bWsw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
I ran into some strange behavior.
Seems like a bug to me?

wbloos=# select round(0.5::numeric), round(0.5::double precision);
round | round
-------+-------
1 | 0
(1 row)

wbloos=# select version();

version
--------------------------------------------------------------------------------------------------------------
PostgreSQL 9.1.13 on x86_64-unknown-linux-gnu, compiled by gcc
(Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1, 64-bit
(1 row)

Cheers,
--
Willy-Bas Loos

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Vincent Veyron 2014-04-15 12:37:03 Re: Approach to Data Summary and Analysis
Previous Message Albe Laurenz 2014-04-15 10:09:51 Re: streaming replication + wal shipping