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

From Tom Lane
Subject Re: dividing money by money
Date
Msg-id 29900.1270075808@sss.pgh.pa.us
Whole thread Raw
In response to Re: dividing money by money  (Andy Balholm <andy@balholm.com>)
Responses Re: dividing money by money  (Andy Balholm <andy@balholm.com>)
List pgsql-bugs
Andy Balholm <andy@balholm.com> writes:
> I tried rewriting my function to use numeric, but I discovered that numeric division is not exact. (Otherwise SELECT
1::numeric/ 3::numeric would result in an infinite loop.) So I went back to my float8 version and wrote a cast from
moneyto numeric. 

That's hardly an improvement if you're concerned about lack of
exactness.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Andy Balholm
Date:
Subject: Re: dividing money by money
Next
From: Andy Balholm
Date:
Subject: Re: dividing money by money