Re: Rounding to even for numeric data type - Mailing list pgsql-hackers

From Albe Laurenz
Subject Re: Rounding to even for numeric data type
Date
Msg-id A737B7A37273E048B164557ADEF4A58B365C6094@ntex2010i.host.magwien.gv.at
Whole thread Raw
In response to Re: Rounding to even for numeric data type  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-hackers
Michael Paquier wrote:
> Well, I am not sure about that... But reading this thread changing the
> default rounding sounds unwelcome. So it may be better to just put in
> words the rounding method used now in the docs, with perhaps a mention
> that this is not completely in-line with the SQL spec if that's not
> the case.

The SQL standard does not care, it says that numbers and other data types
should, whenever necessary, be rounded or truncated in an implementation-
defined fashion.

I cannot find any mention of a round() function.

Yours,
Laurenz Albe

pgsql-hackers by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: getting rid of "thread fork emulation" in pgbench?
Next
From: Antonin Houska
Date:
Subject: Concurrent calls of _hash_getnewbuf()