Eike Lange wrote:
{ converts a string by using current locale to a numeric value Example using de_DE locale: if String2NumLocale ('1,50', MyMoney) then ... True on success } function String2NumLocale (const s: String; var n: <numeric type>): Boolean;
IMHO, monetare values are different enough from other numbers (e.g., at least in some countries, always written with two decimal digits, i.e. 4.20 not 4.2), also because it's fixed-point (two decimal digits, not floating point). In addition, negative values are written differently in some locales, etc. So I'd recommend using a routines specialized for monetary values.
Frank