Decimal formatting

JulieC

New Member
I am getting strange results from a the following piece of code:

def var t-dec as decimal format "->>>,>>9.99" no-undo.

assign t-dec = 4123234.99.

display t-dec.

It displays : 4123,234.99

However I expected it to display: ???????
If I put the "-" on the right side, it gives the error message.

Is this "normal", has anyone else noticed this? Is there a work around?
 

djeanveau

New Member
Why do you expect it to display ???????

work arround would be format "->,>>>,>>9.99"

Good luck!


JulieC said:
I am getting strange results from a the following piece of code:

def var t-dec as decimal format "->>>,>>9.99" no-undo.

assign t-dec = 4123234.99.

display t-dec.

It displays : 4123,234.99

However I expected it to display: ???????
If I put the "-" on the right side, it gives the error message.

Is this "normal", has anyone else noticed this? Is there a work around?
 

JulieC

New Member
I want ???? to alert the user to an incorrect number.

Notice the strange format of 4123,234.99

There should be another "," if the number was going to display correctly.

I am in discussion with Progress to determine the issue.
 

djeanveau

New Member
Julie,

Please let us know how this turns out. I cannot duplicate your error.

What is you code? What version are you using?

Denis
 

mwm

New Member
This is completely normal. The leading "-" can act also as a positive integer.

Try ">>>,>>9" or "->>,>>9".

Matt
 
Top