From: Jan Wieck <JanWieck@Yahoo.com>
To: Michael Glaesemann <grzm@myrealbox.com>
Cc: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: pgsql-admin@postgresql.org
Cc: pgsql-hackers@postgresql.org
Cc: aspire420@hotpop.com
Subject: Re: [HACKERS] IEEE 754
Date: Mon, 12 Jan 2004 09:38:11 -0500
Message-ID: <4002B153.7030705@Yahoo.com> (raw)
In-Reply-To: <8C33EA12-3F44-11D8-BA4F-000A95C88220@myrealbox.com>
References: <200401050051.i050pDF22348@candle.pha.pa.us>
<8C33EA12-3F44-11D8-BA4F-000A95C88220@myrealbox.com>
Michael Glaesemann wrote:
> On Jan 4, 2004, at 6:51 PM, Bruce Momjian wrote:
>
>> Michael Glaesemann wrote:
>>>
>>> On Dec 29, 2003, at 11:28 AM, Sai Hertz And Control Systems wrote:
>>>> I would like to share my concerns about the IEEE 754 specification
>>>> and
>>>> floating point handling by PostgreSQL .
>>>
>>> What specifically are your concerns regarding floating point handling
>>> and PostgreSQL? I'm not in a position to address your concerns, but I
>>> would like to know what they are.
>>
>> Floating point math itself is not precise, but rather an approximation,
>> usually of 8 or 14 digits. You can't approximate money. This isn't a
>> PostgreSQL issue but rather a general programming issue.
>
> Thanks, Bruce. I assume the arbitrary precision arithmetic Jan
> mentioned which is used for the NUMERIC type takes care of this.
That was the whole intention. Although Bruce is wrong, since most of the
time money is approximated. It is only in "bookkeeping" where this is
not allowed.
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck@Yahoo.com #
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: JanWieck@Yahoo.com, grzm@myrealbox.com, pgman@candle.pha.pa.us, pgsql-hackers@postgresql.org, aspire420@hotpop.com
Subject: Re: [HACKERS] IEEE 754
In-Reply-To: <4002B153.7030705@Yahoo.com>
References: <200401050051.i050pDF22348@candle.pha.pa.us> <8C33EA12-3F44-11D8-BA4F-000A95C88220@myrealbox.com> <4002B153.7030705@Yahoo.com>
* 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