Re: Rounding to even for numeric data type

From: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Rounding to even for numeric data type
Date: 2015-05-02 12:53:11
Message-ID: alpine.DEB.2.10.1505020842040.8161@sto
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


> So, attached is a patch that does 1) and 2) to make clear to the user
> how numeric and double precision behave regarding rounding. I am
> adding it to CF 2015-06 to keep track of it...

Quick review: patches applies, make check is fine, all is well.

Two minor suggestions:

All the casting tests could be put in "numeric.sql", as there are all
related to numeric and that would avoid duplicating the values lists.

For the documentation, I would also add 3.5 so that rounding to even is
even clearer:-)

--
Fabien.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fabien COELHO 2015-05-02 13:30:37 Re: PATCH: pgbench - merging transaction logs
Previous Message Kohei KaiGai 2015-05-02 08:15:41 Re: feature freeze and beta schedule