Currency Storage in Oracle with Delphi

From: Roger C. Morgan II <tmorgan3_at_tampabay.rr.com>
Date: 1999/11/18
Message-ID: <AvMY3.17120$435.61738_at_typhoon2.tampabay.rr.com>#1/1


We are in the process of converting from InterBase to Oracle to backend our Delphi applications. In designing the new Oracle database the question has come-up "How do we best store monetary values to prevent penny rounding issues?". We are in the financial industry so "penny balancing" is critical to many of our apps.

We are using BDE and intend to continue to use it for the near future. This means there could be type conversions between Delphi & BDE, then again between BDE & Oracle, just to write the data. This also means there would be similar conversions while reading the data. Creating potentially 4 datatype conversions just to write a value & read it back.

What datatypes (for Oracle and/or Delphi) would you suggest to maximize the accuracy in this environment.

Any comments or suggestions would be appreciated,

Roger Morgan
Roger_at_pathfindermail.com Received on Thu Nov 18 1999 - 00:00:00 CET

Original text of this message