From: silly sad <sad@bankir.ru>
To: pgsql-sql@postgresql.org
Subject: Re: round(Numeric)
Date: Mon, 28 Jun 2010 09:29:03 +0400
Message-ID: <4C28331F.1080007@bankir.ru> (raw)
In-Reply-To: <i04u5h$jc8$1@reversiblemaps.ath.cx>
References: <4C25334D.4040805@gmail.com>
<i04u5h$jc8$1@reversiblemaps.ath.cx>
On 06/26/10 17:09, wrote:
> 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.
IT IS REALLY SAD !
the round(Numeric) does not behave as Math science prescribes :(
Shame on PostgresQL !
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: sad@bankir.ru
Subject: Re: round(Numeric)
In-Reply-To: <4C28331F.1080007@bankir.ru>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox