Re: Round integer division

From: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Round integer division
Date: 2010-06-26 13:09:05
Message-ID: i04u5h$jc8$1@reversiblemaps.ath.cx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On 2010-06-25, Lee Hachadoorian <lee(dot)hachadoorian(at)gmail(dot)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.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Jasen Betts 2010-06-26 13:18:30 Re: Round integer division
Previous Message Frank Bax 2010-06-26 13:03:39 Re: How do I remove selected words from text field?