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/

Reply via email to