From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | tgl(at)sss(dot)pgh(dot)pa(dot)us (Tom Lane) |
Cc: | pgsql-hackers(at)postgreSQL(dot)org |
Subject: | Re: [HACKERS] Warning!! |
Date: | 1998-12-12 20:03:18 |
Message-ID: | 199812122003.PAA03161@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
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.
>
Added.
> Actually, the whole cash datatype ought to be obsoleted by real
> fixed-point-numeric support, but that's a *much* bigger project...
--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | The Hermit Hacker | 1998-12-12 20:06:22 | Re: [HACKERS] 6.4.1 release |
Previous Message | Bruce Momjian | 1998-12-12 19:58:12 | Re: [PATCHES] Patch for PostgreSQL 6.4-BETA5: pgsql/src/backend/port/getrusage.c |