Andy Balholm <andy(at)balholm(dot)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 money to numeric.
That's hardly an improvement if you're concerned about lack of
exactness.
regards, tom lane