> Bruce Momjian <maillist@candle.pha.pa.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@candle.pha.pa.us | (610)
853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill,
Pennsylvania19026