Re: Round integer division

From: Lee Hachadoorian <lee(dot)hachadoorian(at)gmail(dot)com>
To: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Round integer division
Date: 2010-06-25 23:07:40
Message-ID: 4C2536BC.4090306@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On 06/25/2010 07:00 PM, Scott Marlowe wrote:
> That all floating point representations are approximate?
>
But if it's error due to approximation, shouldn't the result be random?
I tried this for a handful of larger numbers, and it appears to
consistently round to the even number. Wouldn't that have to be
intentionally programmed that way?

--Lee

--
Lee Hachadoorian
PhD Student, Geography
Program in Earth & Environmental Sciences
CUNY Graduate Center

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Adrian Klaver 2010-06-25 23:25:48 Re: Round integer division
Previous Message Scott Marlowe 2010-06-25 23:00:40 Re: Round integer division