From: | Michael Robinson <robinson(at)netrinsics(dot)com> |
---|---|
To: | pgsql-hackers(at)hub(dot)org |
Subject: | Re: [HACKERS] Datatype MONEY |
Date: | 1999-12-14 04:20:21 |
Message-ID: | 199912140420.MAA04823@netrinsics.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
wieck(at)debis(dot)com (Jan Wieck) writes:
> In some countries (Germany at least) storage of financial
> booking information is not permitted to use floats. And you
> aren't allowed to use it for calculation of taxes etc.,
> instead you must use some datatype with a fixable number of
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> digits after the decimal point.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
*AND* with correct rounding behavior for the least significant digit
(which may not be displayed, as with the U.S. "mil"--one tenth of a
cent).
-Michael Robinson
P.S. I like the idea of a money type with an internal field for the ISO
currency type. For all my current applications I have to break that out
as a separate char(3) field (USD, HKD, JPY, RMB, etc.).
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Lockhart | 1999-12-14 07:35:43 | Re: [HACKERS] UNICODE characters vs. BINARY |
Previous Message | The Hermit Hacker | 1999-12-14 03:24:05 | Re: [HACKERS] 6.6 release |