Re: dividing money by money - Mailing list pgsql-bugs

From Andy Balholm
Subject Re: dividing money by money
Date
Msg-id E96D6D38-4D6A-4B19-892B-0E0FFF555D17@balholm.com
Whole thread Raw
In response to Re: dividing money by money  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: dividing money by money  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-bugs
> That's hardly an improvement if you're concerned about lack of
> exactness.

I know; I lose a couple of digits by using float8 instead of numeric, but i=
t's much simpler and faster, and if it returned numeric people would _think=
_ it was exact.

And if we have a cast to numeric, people who want those extra digits can ca=
st to numeric before dividing.

But I do still have the numeric code that I tried, so if that's how people =
want to do it, I can provide it.

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: dividing money by money
Next
From: Takahiro Itagaki
Date:
Subject: Re: BUG #5398: psql gives syntax error on .sql files with UTF-8 BOM