Page 1 of 1

Decimal and thousands separators

Posted: Wed Nov 02, 2016 4:36 am
by vijo
Hi,

Our application have both French and English-speaking users. We need to display french-style separators (like 1.234,50) for French-speaking users and english-style separators (like 1,234.50) for English-speaking users.

What is the best way to deal with that.

Re: Decimal and thousands separators

Posted: Wed Nov 02, 2016 4:57 am
by Scott Klement
For periods as decimals, and commas as thousands separators do:

Code: Select all

CHGJOB DECFMT(*BLANK)
For commas as decimals and periods as thousands separators do:

Code: Select all

CHGJOB DECFMT(I)
It will use the DECFMT job attribute that's active at the time of your EXFMT to determine which to use.

Re: Decimal and thousands separators

Posted: Wed Nov 02, 2016 2:17 pm
by vijo
Thanks a lot Scott