Thread: Fwd: Re: [BUGS] dividing money by money

Fwd: Re: [BUGS] dividing money by money

From
"Kevin Grittner"
Date:
Hi Andy,
Do you want to package this up as a patch for 9.1?  If not, is it OK
if I do?
-Kevin
Andy Balholm <andy@balholm.com> wrote:
> On Apr 1, 2010, at 7:57 AM, Kevin Grittner wrote:
>> I'm inclined to think it's better to have an explicit cast from
>> money to numeric, as long as it is exact, and leave the division
>> of money by money as float8.  It does sort of beg the question of
>> whether we should support a cast back in the other direction,
>> though.  I think that would wrap this all up in a tidy package.
> 
> OK. Here is the whole thing in C:
> 
> [implementation as user-side functions]



Re: [BUGS] dividing money by money

From
Andy Balholm
Date:
I'm not quite sure how to go about changing it from an add-on function to a built-in one. So if you want to do that, go
ahead.If you'd rather I did, just tell me how it's done. 

Andy Balholm
(509) 276-2065
andy@balholm.com

On May 26, 2010, at 11:18 AM, Kevin Grittner wrote:

> Hi Andy,
>
> Do you want to package this up as a patch for 9.1?  If not, is it OK
> if I do?
>
> -Kevin