Ditto. Use whichever is expected to be most common as your internal representation and convert to alternate measurement units when displaying or retrieving input if and when required. This is not necessarily as trivial as some would think. Do not convert from one system to the other unless necessary because there is a possibility of incurring cumulative rounding accuracy errors.
This is not necessarily as trivial as some would think. Many very expensive mistakes have been made over the years when mixing measurement systems - as Dave alludes to in his reply. "Dave Lippincott" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I've always found that its best (and less confusing) if you stick to a > single, pre-determined, unit in your stored data and convert on the fly. > Design the app to work with the same units as stored with the data and > convert the results for the user if necessary. > > That way you won't accidentally mix up the data units during a > mission-critical calculation and mess up the landing. > > ----- Original Message ----- > From: "Eddie Gomez" <[EMAIL PROTECTED]> > Newsgroups: palm-dev-forum > To: "Palm Developer Forum" <[EMAIL PROTECTED]> > Sent: Wednesday, April 14, 2004 4:10 PM > Subject: swtiching/storing Metric/SAE values > > > > I am "internationalizing" my app and would like the user to switch between > > US and International measurements on the fly. For example, I would like > to > > go from Feet to Meters, or PSI to Bars. > > > > Has anyone dealt with this? What should be stored in the database itself > so > > that it would take a simple calculation to convert that value to SAE or > > Metric based on user preferences and store back to database the "common" > > value? > > > > Any help would be greatly appreciated! > > > > Eddie > > > > > > > > -- > > For information on using the Palm Developer Forums, or to unsubscribe, > please see http://www.palmos.com/dev/support/forums/ > > > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
