Kbase 20115: How to Change the Numeric Display Format
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  12/15/2000 |
|
SUMMARY:
This solution explains how to change the format of your numeric display when you install Progress. One of the questions you must answer at install is what the numeric format you wish to use.
EXPLANATION:
Progress Version 8.x has two possible formats and they are set with the -E parameter:
American 1,234.56
European 1.234,56
In Version 9.x, Progress added two more parameters:
-numsep (thousands separator)
-numdec (decimal or fractional separator).
Then now the formats are:
American -numsep 44 -numdec 46
European -numsep 46 -numdec 44
When you select a numeric format during the installation process,
these parameters are written into the startup.pf file that is located in the DLC directory. If an error was made in the installation which causes an incorrect display format, you can edit the startup.pf file to make it contain the correct values. In this case, there is no need to reinstall Progress.
The -numdec and -numsep parameters accept the following values:
The characters B C D R Z z 0 1 2 3 4 5 6 7 8 9 + - < > ( ) * ?
The space character.
Any multi-byte character.
As an example, to change the decimal point in formatted text to a comma (whose numeric value in the ISO8859-1 code page is 44), and the thousands separator to an apostrophe (whose numeric value in the ISO8859-1 code page is 39) use:
-numdec 44 -numsep 39
This causes the value 1234.56 to be displayed as 1'234,56
For changing dynamically the numeric display format you can also use the SET-NUMERIC-FORMAT method of the SESSION handle.
SYNTAX:
SESSION:SET-NUMERIC-FORMAT(separator, decimal-point)
EXAMPLE:
SESSION:SET-NUMERIC-FORMAT(".",",").