I've sifted through the archives about the best way to handle currencies; the consensus seems to be that the easiest way is to handle them as integers (specifically as 'long long int') by converting the prices by a factor of 100. So far well.
As Oliver noted, this isn't correct for all locales. You can use LmGlueGetLocaleSetting(lmChoiceCurrencyDecimalPlaces) to get the number of decimal places for a given locale.
My doubt is: what's the best/easiest way of converting a [string] input of e.g. '48,55' to an integer type with the value '4855'?
Use LmGlueGetLocaleSetting with lmChoiceNumberFormat to get the number format for any arbitrary locale, or PrefGetPreference(prefNumberFormat) to get the user's number format. Then call LocGetNumberSeparators to get the thousands and decimal characters. Now you've got enough information to parse the string, though that's not trivial if you really want to enforce strict format checks.
-- Ken -- Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
