Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] Warning!!

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Warning!!
Date: 1998-12-12 17:31:27
Message-ID: 19465.913483887@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> writes:
> Should I add this to the TODO list?
>> 
>> What's needed is explicit rounding.  Instead of letting the compiler do
>> the rounding during its implicit float-to-int conversion (which
>> generally truncates towards 0 or towards -infinity), do
>> [snip]
>> The other cash functions also need to be looked at for rounding
>> sloppiness, so I see no point in committing this fix by its lonesome.

Yes, that still needs to be dealt with. I suggest

	* Fix roundoff problems in "cash" datatype.

Actually, the whole cash datatype ought to be obsoleted by real
fixed-point-numeric support, but that's a *much* bigger project...

			regards, tom lane

Responses

pgsql-hackers by date

Next:From: Bruce MomjianDate: 1998-12-12 19:58:12
Subject: Re: [PATCHES] Patch for PostgreSQL 6.4-BETA5: pgsql/src/backend/port/getrusage.c
Previous:From: Tatsuo IshiiDate: 1998-12-12 15:09:22
Subject: Re: [HACKERS] 6.4.1 release

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group