| From: | "Luke Lonergan" <llonergan(at)greenplum(dot)com> |
|---|---|
| To: | "D'Arcy J(dot)M(dot) Cain" <darcy(at)druid(dot)net>, "Jim C(dot) Nasby" <jim(at)nasby(dot)net> |
| Cc: | pgsql-hackers(at)postgreSQL(dot)org |
| Subject: | Re: New version of money type |
| Date: | 2006-09-28 16:00:30 |
| Message-ID: | C1413FAE.2DDA%llonergan@greenplum.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
D'Arcy,
On 9/28/06 8:43 AM, "D'Arcy J.M. Cain" <darcy(at)druid(dot)net> wrote:
> On Thu, 28 Sep 2006 10:35:01 -0500
> "Jim C. Nasby" <jim(at)nasby(dot)net> wrote:
>> Floating point math and hard-earned money are two things that don't mix
>> well. :)
>
> Using FP to track money is a good way to stop making any. :-)
Understood - a cent here and there in rounding can add up, as the earliest
hackers found out.
What I meant is the use of the "point" that "floats", is there an exponent
stored as part of the format? If so, then the integer arithmetic is not
standard integer operands, right?
Which routines implement the money arithmetic?
- Luke
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2006-09-28 16:06:49 | Re: Row IS NULL question |
| Previous Message | Gevik Babakhani | 2006-09-28 16:00:19 | Re: Row IS NULL question |