Re: Round integer division - Mailing list pgsql-sql

From Jasen Betts
Subject Re: Round integer division
Date
Msg-id i04u5h$jc8$1@reversiblemaps.ath.cx
Whole thread Raw
In response to Round integer division  (Lee Hachadoorian <lee.hachadoorian@gmail.com>)
Responses Re: round(Numeric)  (silly sad <sad@bankir.ru>)
List pgsql-sql
On 2010-06-25, Lee Hachadoorian <lee.hachadoorian@gmail.com> wrote:
> Is it documented anywhere that floating-point numbers round
> "scientifically", that is 0.5 rounds to the nearest even number? 

That's swiss rounding.  And no, as I understand it documented that 
most arithmetic) is platform specific.

Postgres is written in C and the relevant portions of the 
C standards douments (and discussions thereof) give a good 
picture of the functioning of postgres arithmetic. 




pgsql-sql by date:

Previous
From: Frank Bax
Date:
Subject: Re: How do I remove selected words from text field?
Next
From: Jasen Betts
Date:
Subject: Re: Round integer division