Re: Round integer division

Поиск
Список
Период
Сортировка
От Lee Hachadoorian
Тема Re: Round integer division
Дата
Msg-id 4C2536BC.4090306@gmail.com
обсуждение исходный текст
Ответ на Re: Round integer division  (Scott Marlowe <scott.marlowe@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: Round integer division
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Round integer division