Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with decimal point character

Status
Not open for further replies.

theom

Programmer
Feb 22, 2001
28
NL
Hi,
I am using Progress 8.3b on Windows NT, and I have a problem with the decimal point character. Consider the following piece of code:

def var a as char init "1.67".
def var b as dec.
b = dec(a).
display a b.

This displays the following:
a = 1.67
b = 167 (??)
I have already found out that the decimal point character setting in Progress is set to "," which is causing the problem. It should be set to ".". But where do I change it? Is this a parameter in Progress, or a NT setting?

Appreciate your help!
 
|-0

Check the client startup parameters.
The -E parameter tells Progress to use the European Numeric Format. Remove it if you don't want this.

Also, you can use the SESSION handle to examine/change the numeric format at run-time.

Like:
Code:
  IF SESSION:NUMERIC-FORMAT = "European" THEN
      SESSION:NUMERIC-FORMAT = "American".

- Tris
 
Great, this is just what I was looking for! Thanks!
 
If you set the default language to English(International) this also happens - but not if you use English(American) !
 
Hello,
Could you please tell me if this is where I should add the change? how?
I did not see -E, looks like it was removed, but it is still coming up with 19,00 instead of 19.00

if this not where the change is, where about?


thanks,
Ann
~~~~~~~~~~~~~~~~~~~~~
export PATH

if [ -s "$MAIL" ] # This is at Shell startup. In normal
then echo "$MAILMSG" # operation, the Shell checks
fi # periodically.
TERM=vt220
export TERM
. /usr/local/bin/setprogress
cd /files/users/ann/prog02/pfiles
mpro -yy 1930 /prog02/pdata/tst -ld tst -p addcustomer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top