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 -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html NEW! GPC download signing key: ACB3 79B2 7EB2 B7A7 EFDE D101 CD02 4C9D 0FE0 E5E8