Re: Round integer division - Mailing list pgsql-sql

From Lee Hachadoorian
Subject Re: Round integer division
Date
Msg-id 4C2536BC.4090306@gmail.com
Whole thread Raw
In response to Re: Round integer division  (Scott Marlowe <scott.marlowe@gmail.com>)
List 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



pgsql-sql by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: Round integer division
Next
From: Adrian Klaver
Date:
Subject: Re: Round integer division