So, in a multilingual application how would one convert all these?
"1234567,89" European comma decimal point
"1.234.567,89" European comma decimal point, with thousand separators
"1,234,567.89" American period decimal point, with thousand separators
"123,456,789" integer with thousand separators
That's why we convert the thousands separator into blanks in our
multilingual environment depending on the language in which the user works.
And convert the rest with the built-in-function into numeric values.
All numeric! Display file fields are defined as character and the
representation depends on the language used.
--> "1234567,89" --> 1234567,89
--> "1 234 567,89" --> 1234567,89
--> "1 234 567.89" --> 1234567,89
--> "123 456 789" --> 123456789
Mit freundlichen Grüßen / Best regards
Birgitta Hauser
"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"
-----Ursprüngliche Nachricht-----
Von: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] Im
Auftrag von rob@xxxxxxxxx
Gesendet: Tuesday, 30. December 2008 14:59
An: RPG programming on the IBM i / System i
Betreff: Re: Converting a string to a number in RPG
So, in a multilingual application how would one convert all these?
"1234567,89" European comma decimal point
"1,234,567,89" European comma decimal point, with thousand separators
"1,234,567.89" American period decimal point, with thousand separators
"123,456,789" integer with thousand separators
Rob Berendt
As an Amazon Associate we earn from qualifying purchases.